[OpenLayers-Users] Preserve map options when zoom in a map

Juan Jesús Cremades Monserrat relicary at gmail.com
Thu Jan 19 04:50:22 EST 2012


Hi!

In my Ext.onReady(function() I have the next options to the map:

var options = {
controls : [new OpenLayers.Control()],
minExtent : new OpenLayers.Bounds(-1, -1, 1, 1),
maxResolution : 0.35,
maxZoomLevel : 10,
maxExtent : new OpenLayers.Bounds(-1.53544921875, 37.81, 0.0000, 40.84),
tileSize : new OpenLayers.Size(400, 550) //Tamaño de las "tiles" que
conforman el mapa
};

map = new OpenLayers.Map('olmap', options);

And the layers have {'buffer':1} property.

But when I use the toolbar OpenLayers.Control.ZoomBox component, the map is
draw with the default options.

How can I preserve the first configuration although I zoom the map? Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120119/ae532890/attachment.html


More information about the Users mailing list