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);
|
var name = this.getChildValue(node);
|
||||||
if(name) {
|
if(name) {
|
||||||
obj.name = 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"
|
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1"
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user