我在使用WFS请求将数据加载到属性存储时遇到问题。
我正在使用下面的代码来创建商店。
var attrStore = new GeoExt.data.AttributeStore({
url: "http://geoserver:8080/geoserver/ows",
baseParams: {
SERVICE: "WFS",
REQUEST: "DescribeFeatureType",
VERSION: "1.1.0",
TYPENAME: layerID
},
autoLoad: true
})我尝试添加侦听器来查看发生了什么,beforeload侦听器会触发,但不会触发加载,WFS请求也不会被发送。Firebug中没有错误。
任何帮助都将不胜感激。
谢谢
汤姆
发布于 2012-08-30 13:55:36
你想用AttributeStore做什么?如果要编辑特征的属性,最好使用FeatureStore+ExtJs.GridPanelEditor。
AnyWey这里有你想要的例子。http://api.geoext.org/1.1/examples/attributes.html
https://stackoverflow.com/questions/11931243
复制相似问题