[OpenLayers-Users] getDataExtent
Marc Jansen
jansen at terrestris.de
Fri Oct 2 05:34:44 EDT 2009
Hi Tim,
what do you get when you do an alert(typeof gebaeude) in the console of
firebug? If you see the alert popping up with 'undefined', the variable
you are trying to use a vartiable that is not defined in the context you
call it (that would be window, in your case). Is gebaeude a global
variable? How is the layer instanciated?
Regards,
Marc
Tim Balschmiter schrieb:
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list