Ignore:
Timestamp:
2013-01-28T14:06:52+01:00 (11 years ago)
Author:
bastiK
Message:

add session support for marker layers (see #4029)

The data is exported to a separate GPX file that contains one waypoint for each marker.
This is not very elegant, because most of the time, all the info is already contained in the original GPX File.
However, when dealing with audio markers, they can be synchronized, or additional markers are added
at certain playback positions. This info must be retained.
Another complication is, that two or more MarkerLayers can be merged to one.

All these problems are avoided by explicitly exporting the markers to a separate file (as done in this commit).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxReader.java

    r5681 r5684  
    340340                    currentState = states.pop();
    341341                    convertUrlToLink(currentWayPoint.attr);
     342                    if (currentExtensions != null && !currentExtensions.isEmpty()) {
     343                        currentWayPoint.attr.put(META_EXTENSIONS, currentExtensions);
     344                    }
    342345                    data.waypoints.add(currentWayPoint);
    343346                }
Note: See TracChangeset for help on using the changeset viewer.