[OpenLayers-Dev] OpenLayers.Control.ZoomToFeatures

Thomas Wood grand.edgemaster at gmail.com
Mon Feb 9 13:35:27 EST 2009


How about this?
b = Layer.getDataBounds()
map.zoomToExtent(b)

2009/2/9 François Van Der Biest <f.vanderbiest at gmail.com>:
> Hi all,
>
> I wrote a small control, which I find useful to zoom to a vector
> layer's features (see attachment).
> Pierre Giraud and Eric Lemoine told me there's little chance for it to
> become a standard OpenLayers control.
>
> What would be your opinion on that ? Is there a chance it could become
> an addin then ?
> What would be the steps to follow in that case (write doc, unit tests, ...) ?
>
> Thank's
> F.
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>



-- 
Regards,
Thomas Wood
(Edgemaster)



More information about the Dev mailing list