Zverik / Level0

Web-based OpenStreetMap Editor
http://level0.osmz.ru
Do What The F*ck You Want To Public License
53 stars 14 forks source link

draw referenced ways and nodes for selected relations #25

Closed tyrasd closed 8 years ago

tyrasd commented 8 years ago

implements functionality for #15

Way-member drawing is implemented as a recursive call to text2coord which would technically even allow to draw nested relations (but I wasn't sure if that makes much sense in practice and one would have to make sure that reference-loops are handled properly, which can be hairy!).

Zverik commented 8 years ago

Okay, this looks good, though I'm not sure this is useful. Thanks.

tyrasd commented 8 years ago

I'm not sure this is useful.

Why not?

Zverik commented 8 years ago

Relations are usually obvious from their tags (e.g. routes), and if not, showing their members would be more useful, since the focus of this editor is on individual objects.

tyrasd commented 8 years ago

So, why did you propose it in https://github.com/Zverik/Level0/issues/15#issue-34696140, then? :confused:

Zverik commented 8 years ago

I proposed to draw single referenced members of relations.

tyrasd commented 8 years ago

Aaah, I see. That would make sense as well. For example, the selected member could be drawn in a separate "highlight" colour. I'll see what I can do…