First Azure Map and the sample returns blank

MCJX02 6 Reputation points
2021-07-23T19:06:42.767+00:00

I am building my first Azure Map and I got to the part where you build a sample (Azuremapdemo.html) and I put my key in the html file and it returns completely blank except for the search bar in the upper left corner which does not work.

I have tried three different browsers and incognito mode

Tried a different PC

I am in the US117561-azure-screen.png

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. rbrundritt 21,576 Reputation points Microsoft Employee Moderator
    2021-08-09T19:20:05.73+00:00

    Be sure to add your subscription key to the sample. Verify that it is correct (not extra quotes or missing characters). Make sure that the authOptions look something like this:

    authOptions: {
        authType: 'subscriptionKey',
        subscriptionKey: '<Your Azure Maps Key>'
    }
    
    1 person found this answer helpful.
    0 comments No comments

  2. Sam of Simple Samples 5,571 Reputation points
    2021-07-23T19:23:27.263+00:00

    Can you show the code you are using? You can edit your question and add the code. Do not show things like your key.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.