vmarc / knooppuntnet

Route planner and quality assurance for walking and cycling networks in OpenStreetMap.
MIT License
31 stars 6 forks source link

[Planner] When nodes are close, only one is rendered #279

Closed pelderson closed 10 months ago

pelderson commented 1 year ago

When nodes are close to each other, theay are rendered separately only at high zoom levels. Zooming out, only one remains visible, the other completely disappears and there is no way you can see that it is there. E.g. https://knooppuntnet.nl/nl/map/hiking?position=51.97330528,4.55130866,16 nodes 19 and 64 visible vs https://knooppuntnet.nl/nl/map/hiking?position=51.97386455,4.55287131,16 only node 19 visible. The maps in Analysis have the same issue.

I understand the rendering problem. Other planners e.g. Wandelnet Routeplanner have the seem issue (on their planner, the 64 wins).

Would it be possible to have at least a visible indication that nodes are stacked? Maybe something like a double outline?

vmarc commented 1 year ago

Perhaps the concept of clusters in OpenLayers is something to look into for a solution.

pelderson commented 1 year ago

Problem with these clusters is that they show numbers in circles - exactly what nodes do. This would be highly confusing. Maybe if the cluster wouldn't show a number at all and/or the cluster circle would be clearly different - but I can't tell if that is an option. Waymarkedtrails just lets the nodes overlap: https://hiking.waymarkedtrails.org/#?map=14.0/51.9822/4.6431 which is totally clear to the user.

vmarc commented 1 year ago

Implemented in next release (at this time, not publicly available yet).

The map display options have been changed to always show all nodes (no longer using the OpenLayers declutter functionality). This makes the map less nice (perhaps a matter of taste), but it avoids the problem with nodes disappearing or not being shown at all.

overlapping-nodes

vmarc commented 10 months ago

Solution published in release v4.1.0.