[OpenLayers-Dev] Re: maxExtent changes with zoomLevel in the Grid layer

Matt Priour mpriour at kestrelcomputer.com
Mon Mar 7 14:21:35 EST 2011

What about firing a 'beforegridinit' event or something like that, which
fires before running the OpenLayers.Layer.Grid.initGriddedTiles function
You could manipulate the layer's maxExtent at that point just before the
grid setup occurred.

Another option, not requiring the creation of any new event types, would be
to overwrite the getTileOrigin or getMaxExtent functions. getMaxExtent would
make the most sense and is essentially a stub function anyway, just begging
to be overwritten.

Matt Priour

View this message in context: http://osgeo-org.1803224.n2.nabble.com/maxExtent-changes-with-zoomLevel-in-the-Grid-layer-tp6095079p6098638.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.

More information about the Dev mailing list