[OpenLayers-Users] Zoom to selected features
arnd.wippermann at web.de
Fri Apr 17 06:29:40 EDT 2009
var fts = vectorlayer.selectedFeatures;
var bounds = fts.geometry.getBounds().clone();
this should work.
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Antonio Jose Silva (Toze)
Gesendet: Donnerstag, 16. April 2009 23:22
An: users at openlayers.org
Betreff: [OpenLayers-Users] Zoom to selected features
I´m a newbie in openlayers and Im trying to do a service with a map, where
I make a selection and after that I want to zoom in to the selected feature.
How can I make it, any help?
Thank you in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users