source: josm/trunk/test/data/sessions/data_export.gpx@ 18287

Last change on this file since 18287 was 18287, checked in by Don-vip, 3 years ago

fix #20913 - fix handling of GPX files in sessions (patch by Bjoeni)

  • revert r17659 (except for unit tests) - see #20233
    • don't save GPX track and marker colors in session file anymore, but in the GPX files as extensions (like before)
    • don't ask to save unmodified GPX file
    • don't override global color settings when individual track doesn't have a color
  • ask user to save changes to GPX file when any drawing settings or marker colors have changed (currently only happens for track colors)
  • save marker color values to session even when corresponding GPX layer has already been deleted
  • save alpha values for GPX marker colors
  • added explanation to the "overwrite GPX file" dialog
  • inform user if not all files referenced by the session file are saved yet
  • allow user to save all files that are not included in the *.jos/*.joz but are only referenced in the session file
  • display * next to GPX layers that need to be saved (move isDirty() logic from OsmDataLayer to AbstractModifiableLayer)
File size: 910 bytes
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<gpx version="1.1" creator="JOSM GPX export" xmlns="http://www.topografix.com/GPX/1/1"
3 xmlns:josm="http://josm.openstreetmap.de/gpx-extensions-1.1"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://josm.openstreetmap.de/gpx-extensions-1.1 http://josm.openstreetmap.de/gpx-extensions-1.1.xsd">
6 <metadata>
7 <time>2021-10-16T18:27:12.351Z</time>
8 <bounds minlat="42.72659" minlon="-0.00749" maxlat="42.72665" maxlon="-0.00747"/>
9 <extensions>
10 <josm:layerPreferences>
11 <josm:entry key="markers.color" value="#34567812"/>
12 </josm:layerPreferences>
13 </extensions>
14 </metadata>
15 <wpt lat="42.72665" lon="-0.00747">
16 <time>2021-01-01T10:15:30Z</time>
17 </wpt>
18 <wpt lat="42.72659" lon="-0.00749"/>
19</gpx>
Note: See TracBrowser for help on using the repository browser.