[OpenLayers-Users] zoom to layer?
nicholasbs at openplans.org
Tue Apr 21 15:46:55 EDT 2009
Excerpts from Tim Michelsen's message of Tue Apr 21 15:38:12 -0400 2009:
> does Openlayers have a feature like
> zoom to layer?
> Like in many desktop GIS where you can use this to get automatically to
> an adequate extend and zoom level.
Do you mean "zoom to best fit the data on a layer"? For that, I use the
getDataExtent() function. E.g., if I want to show the data on myLayer:
More information about the Users