This is a migrated thread and some comments may be shown as answers.
URLTemplate for Bing Maps
1 Answer 15 Views
Map
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 06 Mar 2020, 04:40 PM

Hi, i just changed our website to use HTTPS on all pages.

But now RadMap doesn't work any more with Bing:

<LayersCollection>
   <telerik:MapLayer Type="Bing" Key="xxxxxxxxxxxxxx" ImagerySet="Road" Attribution="yyy" Opacity="1">
   </telerik:MapLayer>
</LayersCollection>

 

I believe I need to use a custom URLTemplate that uses HTPPS....

Can anyone please show me how exactly this URLTemplate has to be?

Thanks in advance for youe help!

Tom

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 11 Mar 2020, 01:20 PM

Hi Thomas,

The Bing tile layer is a bit special in two regards does not require an UrlTemplate for SSL connection, the Map has that built-in. The protocol is detected based on the current page protocol. You can see how https requests are made on our demos that run on https: https://demos.telerik.com/aspnet-ajax/map/examples/functionality/tile-layers/defaultcs.aspx.

You need to have an API key to provide it with, and you need to generate that key with Microsoft so they know to allow requests from your domain: http://www.microsoft.com/maps/create-a-bing-maps-key.aspx. Keys in some other providers are usually passed as a query string parameter, while it seems Bing relies on the server white-listing your domain.

Regards,
Vessy
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Tags
Map
Asked by
Thomas
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or