-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom coloring of imported .kml / .gpx tours #297
Comments
Whaa, I was about to raise exactly the same issue :-) (blue on blue, impossible to view !) |
Should have known better, we had the same issue with the route color before. For a short-term fix: |
I couldn't find a color that works well with both OSM Carto and CyclOSM. I do like blue on Carto and other maps, although we might need a different tone, as Waymarked trails also uses plain blue. As a quick fix for CyclOSM, I'm using yellow for now if the current layer when loading the track is CyclOSM. Yellow instead of orange, because:
Potential future improvements:
CyclOSM is the default and available for French users only right now. |
togeojson would support KML styles, but Leaflet.FileLayer doesn't apply them to Leaflet. And I'm not sure if many people would benefit from this and if we should put work into supporting special features of a specific format.
Potential options:
We could apply a "random" color to each track, probably as option, either by iterating a defined set of colors or by shifting HSL hue. But probably hard to impossible to ensure good contrast for all. |
See #420#issuecomment-850724915 for a color picker UI remark. |
Thanks for all your considerations - I have to admit I totally forgot about this thread, however the yellow for CyclOSM was a welcomed change and in the meantime I had done some tinkering on a small little "hacky" chrome extension that did the job for me by looking into the DOM and apply a custom color and opacity to the found paths ... I feel like a global configuration option which is remembered is the only really useful way to provide control over the path coloring. When I use the .gpx Import I often import many long-distance cycle paths across multiple federal states, and having to chose the color each time I import another .gpx (although many times I bulk load them in one step) would feel cumbersome. |
pick 1 of the 3 following options, that would be a great start (1 being maybe the most simple and probably also my favourite):
The text was updated successfully, but these errors were encountered: