[OpenLayers-Commits] r5690 - sandbox/topp/nymap/lib/OpenLayers/Format

commits at openlayers.org commits at openlayers.org
Tue Jan 8 15:12:42 EST 2008


Author: sbenthall
Date: 2008-01-08 15:12:42 -0500 (Tue, 08 Jan 2008)
New Revision: 5690

Modified:
   sandbox/topp/nymap/lib/OpenLayers/Format/GML.js
Log:
GML uses cross-browser method to get feature types

Modified: sandbox/topp/nymap/lib/OpenLayers/Format/GML.js
===================================================================
--- sandbox/topp/nymap/lib/OpenLayers/Format/GML.js	2008-01-08 18:44:42 UTC (rev 5689)
+++ sandbox/topp/nymap/lib/OpenLayers/Format/GML.js	2008-01-08 20:12:42 UTC (rev 5690)
@@ -188,6 +188,7 @@
             childNode = childNode.nextSibling;
         }
         feature.fid = fid;
+        
         return feature;
     },
     
@@ -578,7 +579,7 @@
     
     parseFeatureType: function(node){
         var childNode = node.firstChild;
-        return childNode.localName;
+        return childNode.nodeName.split(":")[1];
     },
     
     /**



More information about the Commits mailing list