Modify ↓
Opened 4 years ago
Last modified 4 years ago
#21933 new enhancement
Customization of GPS drawing options
| Reported by: | Bjoeni | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | tested |
| Keywords: | gpx, color, mapcss | Cc: |
Description
Followup of #20600 (and #13484, #20601, #21810, #21928)
GPS drawing options are currently quite limited and hardcoded. They should be customizable. This could be done a couple of different ways:
- Making currently hardcoded colors customizable as
NamedColorProperties - Allowing plugins to easily extend the existing functionality
- Implementing MapCSS for GPX layers?
- Implementing something else allowing the user to customize track colors for certain values
Replying to stoecker:
I wonder if GPX layers should support MapCSS as well, so they can be styled directly instead of implementing all variants in JOSM core.
Attachments (0)
Note:
See TracTickets
for help on using tickets.



This should be fairly easy to do -- we just need to have GpxData implement
OsmData, and then we can essentially reuse the draw code in OsmDataLayer (MapRendererFactor.getInstance.createActiveRenderer(...)).Honestly, the sticking point might be figuring out how to implement
INode,IWay, andIRelationfor GPX datasets. Especially since they are (technically) for OSM nodes/ways/relations.Possible mapping:
INode->WayPointIWay->IGpxTrackSegmentIRelation->IGpxTrack/IGpxRoute-- this will probably need a "parent", i.e.IGpxTrack extends IGpxRelationandIGpxRoute extends IGpxRelation.