-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom zoomLVL and zoomCoordinates #25
Comments
If you want to make the map zoom to specific area, why don't just use E.g.:
|
OK, here's a better way. There's an undocumented method
|
I don't want to zoom to an area. I want to zoom to a point to the right of an area. I want to add an offset to the area coordinates and zoomLvL |
Gotcha. Unfortunately, there's currently no way to find out the zoom level for the area. Sorry :( |
I want to manipulate zoomLvL and the zoomCoordinates of mapObjects(mapAreas).
with
map.zoomToLongLat(areaZoomLvL + offset, areaLong + offset, areaLat+ offset)
I can zoom to a specific location.
I'm fine with the lat/long. I can get them with
map.getAreaCenterLongitude(mapObject)
and
map.getAreaCenterLatitude(mapObject)
But I couldn't figure out how to get the standard zoomLvL of an area.
Is there a way to get the standard zoomLvL of an area or to manipulate the standard zoom behavior?
The text was updated successfully, but these errors were encountered: