If you are using TypeScript via NPM, you won't see the map.map
or the setPaintLayer
function as those are undocumented features. The Azure Maps Web SDK wraps MapLibre and creates a more developer friendly APi interface for faster development of common scenarios. map.map
is a reference to the wrapped MapLibre instance. TypeScript will not like you trying to access this, so you will need to add a comment above the code to ignore typescript's error. For example:
//@ts-ignore
map.map.setPaintProperty(layers[i].id, "fill-color", "#04015A");