-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Alternative map styles #6616
Comments
It is called map paint styles in JOSM. See doc at https://josm.openstreetmap.de/wiki/Styles |
Looks like JSOM uses MapCSS. I wonder if iD should try to use that. |
Not sure how hard is to implement it, but making possible to use all styles made for JOSM sounds very nice. |
Sounds interesting, please add for me in the list
|
Many of the layers provided by the former ito! Map tool would be useful as lenses. |
@quincylvania see https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation for the JOSM documentation. We use it both for styling and for validator rules. |
I like how you can overlay multiple styles in JOSM -- they're additive. While this can get messy and produce unpredictable results, it does allow for more detailed tweaking. Not sure if this is something we'd want for iD, though. |
While I can see how this might be useful sometimes, I'm not sure the added complexity is worth it. "Messy and unpredictable" goes against iD's goals. Perhaps there's an elegant way we could allow multiple complementary styles in the future, but I think one-at-a-time is sufficient as an initial implementation. |
Potlatch 2 has a “Highlight unedited TIGER (US roads)” option that still comes in handy in some parts of the U.S. Lenses like TIGER could be limited to certain regions (similar to imagery layers) or shareable somehow. |
Since the change highlighting in #6843 came out pretty well, I'm thinking we might use the same outline mechanism for these other styles. The benefit is that we wouldn't lose the type information conveyed in the base rendering. I'm inclined to forge ahead with a quick solution and not worry about MapCSS right now. We'll also need a legend component somewhere to explain what the colors mean. |
The default map styling is fine for most users most of the time, but there are times when domain-specific styling could be useful. For example:
maxspeed
(Visually differentiate roads speed limits #5662)access
(Render access restrictions #2068)We should build a general-purpose "lens" system that lets people quickly toggle between these styles ("lenses"). As part of #6483, lenses should be defined atomically and could be swapped in and out by downstream projects. Only some lenses would be suitable to ship with iD to everyone on osm.org, but ideally users could plug in their own lenses too.
I assume JOSM already has a feature like this. We should see how they do it.
The text was updated successfully, but these errors were encountered: