Closed Mannivu closed 3 years ago
Actually, the problem with the URL in this issue is the part @-8.5275,119.7458151,642m
. I'm not sure how to convert 642m
to zoom.
If I understand this correctly, XXXz becomes XXXm when the user uses the Satellite Imagery style instead of the Map style. This is because the URL uses a zoom with the Map style, but uses a meter scale while using the Satellite Imagery. I'm trying to understand how bestmaps.ru/map-helper works and I see he relies on URL redirects (it creates an URL that leads to https://www.google.com/maps/?ll=LAT,LON&spn=2.414984,2.568054&t=h&z=17
wich gets reconverted to https://www.google.com/maps/@LAT,LON,536m/data=!3m1!1e3
) but on the other way around I don't know how they detect zoom from scale.
Needs further investigations
If I understand this correctly, XXXz becomes XXXm when the user uses the Satellite Imagery style instead of the Map style. This is because the URL uses a zoom with the Map style, but uses a meter scale while using the Satellite Imagery. I'm trying to understand how bestmaps.ru/map-helper works and I see he relies on URL redirects (it creates an URL that leads to
https://www.google.com/maps/?ll=LAT,LON&spn=2.414984,2.568054&t=h&z=17
wich gets reconverted tohttps://www.google.com/maps/@LAT,LON,536m/data=!3m1!1e3
) but on the other way around I don't know how they detect zoom from scale.
Hello! I am a co-author of the MapHelper extension. The number in Google Maps is the height above the ground. This number depends on the altitude, so there is no universal way to calculate zoom in Google Maps. See my question on StackOverflow: https://stackoverflow.com/questions/18582066/how-to-calculate-zoom-url-parameter-at-the-google-maps-preview-new-version-gm
Trying to fix GMaps search and place URL (for #93). Needs testing.