Answer accepted by question author
The Azure Maps team hasn't publicly documented the layers used within the styles. These styles change fairly regularly on the Microsoft side, and I believe they don't document these things so that they can update it seamlessly without having to worry about supporting different versions of the styles.
-
rbrundritt 21,711 Reputation points • Volunteer Moderator
That said, if you want to do some custom styling or use the vector tiles elsewhere and willing to take the risk of the styles changing without notice, then there are a few options to see the styles. The easiest is to watch the network traffic when the map loads or when you change map styles. For example, this URL gets the style JSON for the light gray scale style "https://atlas.microsoft.com/styling/styles/grayscale_light?styleVersion=2023-01-01&mcv=372&api-version=2.0"
Another option is to use the MapLibre API that's under the hood of the Azure Maps Web SDK like
map.map.getStyle()You can also loop through all the layers and sources in the map using some of the functions undermap.map -
Florent Lavergne (iMetaverse LLC) 60 Reputation points • Microsoft External Staff
Thank you for these useful tips!
Sign in to comment
