I have a seemingly simple situation, but have yet to find a solution. Here's a temporary dev link:
[[url removed]]
As you can see, we're looking at a fullscreen Google Map. If you allow the page access to your location, it will zoom into it. If you want to zoom out again to "the world", you can click the globe icon in the top right.
My question is related to zooming out to that "world" level. I'm currently using a zoom level of 3 for that. However, the results highly depend on the size/DPI of the viewport one uses. Zoom level 3 is about right on my desktop, yet too far zoomed in on my smartphone, which then shows only Africa. Setting it to zero will make it right for the smartphone, yet shows the world several times over for my desktop.
What I need is a way to reliably set a zoom level that accomplishes exactly the full world in view, regardless of the viewport size. I was hoping there would be a simple way to this? I have the feeling that I'm overlooking something really essential here.
Note that my question is not related to markers, I simply want the world to fit on screen exactly one time, regardless of markers.