6/23/2023 0 Comments Microsoft service map designerZoom in and out to see how the map automatically renders with more or less information depending on the zoom level.Ĭhange the default center of the map. Observe the map shown of the City of Los Angeles. Open the file AzureMapDemo.html in a browser of your choice. Replace with the subscription key value from the preceding section.Uncomment the last two lines in the authOptions function, this code is used for Shared Key authentication, the approach being used in this quickstart.Comment out all of the code in the authOptions function, this code is used for Azure Active Directory authentication.Add the Primary Key value you got in the preceding section.Save the contents of this file locally as AzureMapDemo.html.This quickstart uses the Shared Key authentication approach for demonstration purposes, but the preferred approach for any production environment is to use Azure Active Directory authentication. Copy the Primary Key and save it locally to use later in this tutorial.In the settings section, select Authentication.Once your Azure Maps account is successfully created, retrieve the subscription key that enables you to query the Maps APIs. Get the subscription key for your account Read the License and Privacy Statement, then select the checkbox to accept the terms. The Name of your new Azure Maps account.You may choose to Create new or Select existing resource group. The Resource group name for this account.The Subscription that you want to use for this account.On the Create an Azure Maps Account resource page, enter the following values then select the Create button: Select Azure Maps in the drop-down list that appears, then select the Create button. Type Azure Maps in the Search services and Marketplace box. Select Create a resource in the upper left-hand corner of the Azure portal. If you don't have an Azure subscription, create a free account before you begin.Ĭreate a new Azure Maps account with the following steps: This quickstart uses the Azure Maps Web SDK, however the Azure Maps service can be used with any map control, such as these popular open-source map controls that the Azure Maps team has created plugin's for. Download and open the demo map application.Get your Azure Maps subscription key to use in the demo web application.In this quickstart, you will learn how to use Azure Maps to create a map that gives users an interactive search experience.
0 Comments
Leave a Reply. |