Hi

I have added a wfs layer with the filter option . Now I want to zoom to it
.I am be able to do it with :

bounds = new
OpenLayers.Bounds(-9441241.90017852,4636148.46449042,-8963467.99653102,5159004.74932964);//
state :ohio
        map.zoomToExtent(bounds);       
but I have to do it Dynamically .How can I get the bounds ? Below is the
output of that same filter.how can I extract the gml:coordinates  .
---------                                                        
- <gml:boundedBy>
- <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#900913";>
  <gml:coordinates xmlns:gml="http://www.opengis.net/gml"; decimal="." cs=","
ts="">-9441241.90017852,4636148.46449042
-8963467.99653102,5159004.74932964</gml:coordinates> 
  </gml:Box>  </gml:boundedBy>
- <gml:featureMember>
- <topp:states fid="states.48">

Thanks,

-- 
View this message in context: 
http://www.nabble.com/Zoom-to-a-WFS-filter-feature-tf4874716.html#a13948231
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to