Dear everybody,
I am new to using GeoExt and OpenLayers. I want to get list of feature in my
layer, I am using example from
http://workshops.opengeo.org/geoext/wfs/grid.html But it doesn't work to me to
get from my MapServer WFS. This is my code:
var store = new GeoExt.data.FeatureStore({
fields: [
{name: "nama_kecam", type: "string"}
],
proxy: new GeoExt.data.ProtocolProxy({
protocol: new OpenLayers.Protocol.WFS({
url:
"/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fix.map",
version: "1.1.0",
featureType: "kecamatan",
featureNS: "http://medford.opengeo.org",
srsName: "EPSG:32749"
})
}),
autoLoad: true
});
var gridPanel = new Ext.grid.GridPanel({
title: "Feature Table",
region: "center",
viewConfig: {forceFit: true},
store: store,
cm: new Ext.grid.ColumnModel({
defaults: {
sortable: true
},
columns: [
{header: "Name", dataIndex: "nama_kecam"}
]
})
});
but the grid panel is empty, whats wrong?? No error displayed in firebug.
the page: http://www.dharmawan.web.id/map2.php
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users