Ticket #3528 (new feature)

Opened 20 months ago

Last modified 20 months ago

GML.js modification to treat properly generic tag names

Reported by: docg Owned by:
Priority: minor Milestone:
Component: general Version: 2.11
Keywords: Cc:
State:

Description

The GML.js parse the gml received.

In the gml file, tags can have a generic form, <Layer Name=mylayername> <Attribute Name=myfirstattributename>thecontent1</Attribute> <Attribute Name=mysecndattributename>thecontent2</Attribute> </Layer>

Currently, the code takes the name of the tag as the layer name and attributes names.

I propose in the attached file a modification, that conserve the current behaviour, except it will test for Layer name 'Layer' and replace it by the content of the attribute Name. The same behaviour is applied for the Attribute tag.

Attachments

GML.js Download (36.5 KB) - added by docg 20 months ago.
OL/lib/OpenLayers/Format/GML.js

Change History

Changed 20 months ago by docg

Miodifications proposed are encapsulated by

// proposed modification

lines.

Changed 20 months ago by docg

OL/lib/OpenLayers/Format/GML.js

Note: See TracTickets for help on using tickets.