always include field type in DescribeFeatureType fields. With

modifications from tschaub. r=tschaub (closes #1202)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2009-03-20 17:26:40 +00:00
parent 7e35022dff
commit 0a6ea3125d
2 changed files with 9 additions and 2 deletions

View File

@@ -112,6 +112,7 @@ OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class(
type = {};
this.readChildNodes(node, type)
element.restriction = type;
element.type = type.base;
}
var fullType = type.base || type;
element.localType = fullType.split(":").pop();