[OpenLayers-Users] getDataExtent

Tim Balschmiter tb.rostock at googlemail.com
Thu Oct 1 11:54:53 EDT 2009


Hello List, i´ve got a mapobject with some layers.

gebaeude = new OpenLayers.Layer.Vector("gebaeude",{styleMap:
gebaeudeStyle});
map.addLayer(gebaeude);

the layers were filled with a geoext.data.store:

gebaeudeStore = new GeoExt.data.FeatureStore({
               layer: gebaeude,
               autoDestroy:true,
               proxy: new GeoExt.data.ProtocolProxy({
               protocol: new OpenLayers.Protocol.WFS({
                         url:  "http://localhost/geoserver/wfs",
                         featureType: "rfhgebaeude",
                         featureNS: "http://www.rostock.de/",
                         srsName: "EPSG:2398",
                         version: "1.1.0",
                         extractAttributes: true,
                         filter: new OpenLayers.Filter.Logical({
                                  type:OpenLayers.Filter.Logical.AND,
                                  filters:[]
                                  })
                         })
               })})

now i am searching for a way to get the maxextent. after  loading the page i
am using alert(gebaeude.getDataExtent()) in the console of the firebug. but
i only get gebaeude.getDataExtent is not a function.
what can i do to get the maxextent of this kind of layer?

thanks for helping me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091001/fb5b5cc4/attachment.html


More information about the Users mailing list