Forum Discussion
PawelB
Dec 29, 2024Copper Contributor
Azure Maps does not zoom out completely
I'm working on a WordPress plugin and I needed to migrate from Bing Maps API to Azure Maps.
I noticed that it is not possible to zoom out to the maximum on a map created with the Azure maps API when it is restricted to a smaller portion of a screen. The more noticeable it is, the smaller the map gets.
Example:
This is the maximum zoom-out available.Comparion with the Bing Maps similar size:
Maximum zoom-out for a Bing MapOf course, I tested this with minZoom options like:
map = new atlas.Map( "new_map", {
center: [0, 0],
maxZoom: 24,
minZoom: 1 // with 0 map disappears
});
As you can see the maximum zoom out is drastically reduced.
This WordPress plugin allows you to show albums with photos from all over the world and smaller maps may not show all of them.
Internet search showed me only one other post about this issue
and similar but probably not correctly described in here:
The new Azure Maps seems to zoom in too far - Microsoft Q&A
Is there a solution to this problem or I missed something?
- Denise_Chen
Microsoft
Hi
We'll work with our partner team to see if zoom level 0 can be planned for the future release, in the meanwhile, there're some workarounds for you:
- If you're only using satellite style, change the zoom level to -1
- Add this to the map container css ` transform: scale(0.5)`
Let us know if this works for you.