question

JamesClark-1717 avatar image
0 Votes"
JamesClark-1717 asked rbrundritt commented

Problems with api key

Hi I have created an api key and tried it with your example tutorial. But I get the error :
The specified credentials are invalid. You can sign up for a free developer account at http://www.bingmapsportal.com
I am hosting the code at jccodez.com/BingMaps

Please can you help.

Regards

James

azure-maps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

rbrundritt avatar image
1 Vote"
rbrundritt answered rbrundritt commented

You have square brackets around your key in the map script URL, remove those.

If you are just getting started, you might also want to take a look at Azure Maps. It's Microsoft latest mapping platform. The Azure Maps web SDK has a lot more performance benefits, and licensing is much easier than Bing Maps. Here are some resources:

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thats great thanks very much Ill give a try. What I am really looking for is really clear satellite maps when zoomed in that I can free hand draw on. I wrote an app with google api but was trying some others. Yet to find maps as clear as google.

Thanks again

0 Votes 0 ·

Both platforms use the same imagery provider, so you will get the same with both.

Here is an example of drawing and extracting shapes with either platform:

Bing Maps: https://bingmapsv8samples.azurewebsites.net/#DrawingTools_GetDrawnShapes

Azure Maps: https://azuremapscodesamples.azurewebsites.net/?sample=Get%20drawn%20shapes%20from%20drawing%20manager (Some advance drawing tool features will likely be released in the next week. One key one is a snapping grid which makes it much easier to draw nicely aligned shapes) Here are some more drawing tool samples: https://azuremapscodesamples.azurewebsites.net/#Drawing-Tools-Module The Azure Maps drawing tools also have some advanced controls and short cuts that are good to know about: https://docs.microsoft.com/en-us/azure/azure-maps/drawing-tools-interactions-keyboard-shortcuts

0 Votes 0 ·