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/data/gpx/IWithAttributes.java

    r5681 r5684  
    55
    66/**
    7  * Object with attributes.
     7 * Object with attributes (in the context of GPX data).
    88 */
    99public interface IWithAttributes {
     10
     11    /**
     12     * Returns the Object value to which the specified key is mapped,
     13     * or {@code null} if this map contains no mapping for the key.
     14     *
     15     * @param key the key whose associated value is to be returned
     16     * @return the value
     17     */
     18    Object get(String key);
    1019
    1120    /**
     
    1827     */
    1928    String getString(String key);
    20    
     29
    2130    /**
    22      * Returns the Collection value to which the specified key is mapped, 
     31     * Returns the Collection value to which the specified key is mapped,
    2332     * or {@code null} if this map contains no Collection mapping for the key.
    24      * 
     33     *
    2534     * @param key the key whose associated value is to be returned
    26      * @return the Collection value to which the specified key is mapped, 
     35     * @return the Collection value to which the specified key is mapped,
    2736     *         or {@code null} if this map contains no Collection mapping for the key
    2837     * @since 5502
    2938     */
    30     Collection<?> getCollection(String key);
     39    Collection getCollection(String key);
     40
     41    /**
     42     * Put a key / value pair as a new attribute.
     43     *
     44     * Overrides key / value pair with the same key (if present).
     45     *
     46     * @param key the key
     47     * @param value the value
     48     */
     49    void put(String key, Object value);
     50
     51    /**
     52     * Add a key / value pair that is not part of the GPX schema as an extension.
     53     *
     54     * @param key the key
     55     * @param value the value
     56     */
     57    void addExtension(String key, String value);
     58
    3159}
Note: See TracChangeset for help on using the changeset viewer.