make WFSCapabilities format retrieve feature type prefix and namespace, r=bartvde (closes #2640)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -89,6 +89,11 @@ OpenLayers.Format.WFSCapabilities.v1 = OpenLayers.Class(
|
||||
var name = this.getChildValue(node);
|
||||
if(name) {
|
||||
obj.name = name;
|
||||
var prefix = name.split(":")[0];
|
||||
if(prefix !== name) {
|
||||
obj.featurePrefix = prefix;
|
||||
obj.featureNS = this.lookupNamespaceURI(node, prefix);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -114,4 +119,4 @@ OpenLayers.Format.WFSCapabilities.v1 = OpenLayers.Class(
|
||||
|
||||
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1"
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user