[Users] FeatureStore with empty grid
Sascha Müller
s.mueller76 at arcor.de
Thu Sep 3 12:02:11 CEST 2009
Hi,
I want to load the gridPanel with features read from a WMS Layer, see below.
I use the FeatureStore and it seems it works. With Firebug, I can see
that the
response contains the attributes I expected. But the grid is still empty.
There is no Error message.
What seems to be the problem? Is there something special I have to
consider, what I can't see in the examples?
// WMS Layer
var haltestellen = new OpenLayers.Layer.WMS(
"Haltestellen", "http://localhost:8081/geoserver/wms",
{layers: "VBL:haltestellen",
transparent: true,
format: 'image/png'},
{isBaseLayer: false
});
// FeatureStore
var store = new GeoExt.data.FeatureStore({
layer: vecLayer,
fields: [
{name: 'Linie', type: 'int'},
{name: 'Name', type: 'string'},
{name: 'x', type: 'double'},
{name: 'y', type: 'double'},
{name: 'Einst', type: 'int'},
{name: 'Ausst', type: 'int'},
{name: 'Standzeit', type: 'int'}
],
proxy: new GeoExt.data.ProtocolProxy({
protocol: new OpenLayers.Protocol.WFS({
url: 'http://localhost:8081/geoserver/wfs',
featureType: 'haltestellen',
srsName: 'EPSG:21781',
version: '1.1.0'
})
}),
autoLoad: true
});
Thanks
Sascha
More information about the Users
mailing list