how can azure maps get the location?

You inverted longitude and latitude. The azure-maps library expects the longitude first :

map = new atlas.Map('myMap', {
                center: [10.305192, 36.817421],
                zoom: 13,
                view: 'Auto',
        //Add your Azure Maps key to the map SDK. Get an Azure Maps key at NOTE: The primary key should be used as the key.
                authOptions: {
                    authType: 'subscriptionKey',
                    subscriptionKey: '<key>'

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top