Please try OpenLayers.Map.zoomToExtent(OpenLayers.Bounds) which will zoom to the passed in bounds and recenter the map.
How to set the extent of an OpenLayers Map?
-
24-03-2022 - |
Domanda
I want to pan and zoom an OpenLayers.Map
to a given OpenLayer.Bounds
.
What is a quick way to do this action?
I want to see everything that is in the bounds on the map.
Cheers!
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow