Files
openlayers/src/ol
Edward Nash e1b4634fa4 Correct parsing multi-properties with attributes
When parsing GML then conversion of properties containing XML attributes
to objects with a _content_ property must occur before the handling of
multiple attributes (conversion/adding to an array), as otherwise the
_content_ property and attributes are set on the array and not on the
array element.

Prior to this change, only multiple properties without attributes could
be correctly parsed.

Example problemeatic GML section:
<Link xlink:href="http://example.com/a"/>
<Link xlink:href="http://example.com/b"/>

Resulting property as JSON extract after this change:
{
  "Link": [
    {
      "_content_": undefined,
      "xlink:href": "http://example.com/a",
    },
    {
      "_content_": undefined,
      "xlink:href": "http://example.com/b"
    }
  ]
}

Prior to this change, the _content_ property and the properties for the
XML attributes would be set on the resulting JS Array object, with
previous entries being represented as nested arrays.
2021-10-29 16:35:05 +02:00
..
2021-10-12 11:29:35 +02:00
2021-06-28 18:10:51 +02:00
2020-04-06 12:54:09 -06:00
2021-09-26 20:11:40 -06:00
2020-04-06 12:54:09 -06:00
2021-03-05 22:53:35 +01:00
2021-10-25 10:22:40 +01:00
2020-04-06 12:54:09 -06:00
2021-09-23 13:24:58 +00:00
2021-09-07 09:47:47 +02:00
2020-04-06 12:54:09 -06:00
2017-12-18 10:33:41 +01:00
2020-04-06 12:54:09 -06:00
2020-04-06 12:54:09 -06:00
2020-04-06 12:54:09 -06:00
2021-06-17 21:54:07 -06:00
2021-06-17 21:54:07 -06:00
2021-06-28 18:10:51 +02:00
2021-07-26 09:24:52 +02:00
2021-02-02 12:14:56 +01:00
2020-07-06 20:01:50 +02:00
2020-04-23 17:01:22 -04:00
2021-06-09 14:47:41 +01:00
2020-04-06 12:54:09 -06:00
2020-04-06 12:54:09 -06:00
2021-06-29 14:19:58 +02:00
2020-05-10 16:54:34 +02:00
2020-04-06 12:54:09 -06:00
2021-07-10 11:28:47 +02:00
2021-07-10 11:28:47 +02:00
2020-04-06 12:54:09 -06:00
2020-04-30 18:44:49 +01:00
2021-09-03 12:28:27 -06:00
2020-04-06 12:54:09 -06:00
2021-09-25 06:31:36 +00:00
2020-04-06 12:54:09 -06:00
2018-10-23 17:58:50 +02:00
2021-09-10 02:01:46 +02:00
2021-02-04 18:19:33 +01:00
2021-06-28 18:10:51 +02:00
2018-12-14 13:00:35 +01:00
2021-05-30 21:22:03 +02:00
2020-04-06 12:54:09 -06:00
2020-04-06 12:54:09 -06:00
2020-04-06 12:54:09 -06:00
2021-05-18 15:43:55 +02:00
2020-04-06 12:54:09 -06:00
2021-06-28 18:10:51 +02:00
2020-04-06 12:54:09 -06:00
2020-04-06 12:54:09 -06:00
2021-06-28 18:10:51 +02:00