How to set OpenLayers card size?

I want to pan and scale OpenLayers.Map to the given OpenLayer.Bounds .

What is a quick way to do this?

I want to see everything that is within the borders on the map.

Hooray!

+4
source share
1 answer

Please try OpenLayers.Map.zoomToExtent (OpenLayers.Bounds) , which will scale to the bounds and display the map.

+7
source

All Articles