openstreetmap / iD

🆔 The easy-to-use OpenStreetMap editor in JavaScript.
https://www.openstreetmap.org/edit?editor=id
ISC License
3.37k stars 1.21k forks source link

indicate route membership with shadow #659

Open jfirebaugh opened 11 years ago

jfirebaugh commented 11 years ago

P2 does this:

image

@samanpwbb what do you think? Useful?

NopMap commented 6 years ago

I think there is an important feature missing here.

Potlatch2 is capable of highlighting ways which are members of routes on the map (without selecting anything). This is very helpful to see where route relations are "hidden". It is also possible to distinguish different types of route relations by different color highlighting.

It is probably necessary to switch the highlighting of different types of relations on and off in the sidebar, similar to the "Map Features" checkboxes. Most users will be focusing on one type of relations, e.g. when I am mapping hiking routes, I am not interested in seeing turn restrictions or public transportation. The default should probably be "off" as new users are ususally not yet familiar with relations and would be confused by the additional highlighting.

NopMap commented 6 years ago

In my fork I did a basic implementation of the behaviour possible in P2:

You can try it out on www.wanderreitkarte.de. My implementation statically supports two route relations to match the focus of my fork, for the iD master it probably should be user-configurable which routes are of interest.

bhousel commented 6 years ago

I'll probably do something stylistically similar to what I just added in #4768 in the Turn Restriction editor.

It's not hard, but we need to render another stroke and add some design elements so that users can easily identify them - either by hovering on relations in the sidebar or when one is selected.

tr_preview

(Going to tag this as a priority item)

NopMap commented 6 years ago

I think there are two sides to this issue

Do you also plan a statical highlighting of the different route types?

bhousel commented 6 years ago

Do you also plan a statical highlighting of the different route types?

Not sure what you mean by this, but probably yes.