azure-docs
azure-docs copied to clipboard
This Azure Maps demo page did not work.
Azure Maps demo does not work.
I followed all instructions. Tried it in both Firefox and Edge browsers. Never saw a Los Angeles map. The Search, + or - buttons would not work.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: e3d455c9-d5c7-3a9e-5de5-b16072f3c77e
- Version Independent ID: d0f120b2-5ef9-9112-d17f-e8b2275ed5b4
- Content: Quickstart: Interactive map search with Azure Maps
- Content Source: articles/azure-maps/quick-demo-map-app.md
- Service: azure-maps
- GitHub Login: @eriklindeman
- Microsoft Alias: eriklind
@Erik4792 Thanks for your feedback! We will investigate and update as appropriate.
@Erik4792 Here's what the specific code section should look like after the changes are made that the quickstart advises:
function GetMap() { //Initialize a map instance. map = new atlas.Map('myMap', { center: [-74.0060, 40.7128], zoom: 14, view: 'Auto',
//Add authentication details for connecting to Azure Maps.
authOptions: {
//Use Azure Active Directory authentication.
//authType: 'anonymous',
//clientId: 'e6b6ab59-eb5d-4d25-aa57-581135b927f0', //Your Azure Maps client id for accessing your Azure Maps account.
//getToken: function (resolve, reject, map) {
//URL to your authentication service that retrieves an Azure Active Directory Token.
//var tokenServiceUrl = "[https://samples.azuremaps.com/api/GetAzureMapsToken";](https://samples.azuremaps.com/api/GetAzureMapsToken%22;)
//fetch(tokenServiceUrl).then(r => r.text()).then(token => resolve(token));
//}
//Alternatively, use an Azure Maps key. Get an Azure Maps key at https://azure.com/maps. NOTE: The primary key should be used as the key.
authType: 'subscriptionKey',
subscriptionKey: 'YourAzureMapsKey'
}
});
@Erik4792 if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.