OpenLayers OpenLayers

Changeset 7654

Show
Ignore:
Timestamp:
07/31/08 21:30:39 (4 months ago)
Author:
tschaub
Message:

Adding gml specific attributes to feature in gml parsing. p=sbenthall r=me (closes #1328)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Format/GML.js

    r7540 r7654  
    169169        } 
    170170        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                 
    171178        // assign fid - this can come from a "fid" or "id" attribute 
    172179        var childNode = node.firstChild;