Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created June 2, 2010 16:50
Show Gist options
  • Select an option

  • Save tmcw/422655 to your computer and use it in GitHub Desktop.

Select an option

Save tmcw/422655 to your computer and use it in GitHub Desktop.
Index: lib/OpenLayers/Format/GML/Base.js
===================================================================
--- lib/OpenLayers/Format/GML/Base.js (revision 10367)
+++ lib/OpenLayers/Format/GML/Base.js (working copy)
@@ -346,7 +346,8 @@
// Assume attribute elements have one child node and that the child
// is a text node. Otherwise assume it is a geometry node.
if(node.childNodes.length == 0 ||
- (node.childNodes.length == 1 && node.firstChild.nodeType == 3)) {
+ (node.childNodes.length == 1 && node.firstChild.nodeType == 3) |
+ (node.childNodes.length == 1 && node.firstChild.nodeType == 4)) {
if(this.extractAttributes) {
name = "_attribute";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment