Ticket #1328: feature.gml.patch
| File feature.gml.patch, 0.7 kB (added by tschaub, 4 months ago) |
|---|
-
lib/OpenLayers/Format/GML.js
old new 168 168 attributes = this.parseAttributes(node); 169 169 } 170 170 var feature = new OpenLayers.Feature.Vector(geometry, attributes); 171 172 feature.gml = { 173 featureType: node.firstChild.nodeName.split(":")[1], 174 featureNS: node.firstChild.namespaceURI, 175 featureNSPrefix: node.firstChild.prefix 176 }; 177 171 178 // assign fid - this can come from a "fid" or "id" attribute 172 179 var childNode = node.firstChild; 173 180 var fid;
