roataway / roataway-web

Roataway web site
https://roataway.md
GNU Affero General Public License v3.0
20 stars 13 forks source link

Station marker UX tweaks #85

Open roata opened 4 years ago

roata commented 4 years ago

At the moment the station markers are displayed in a way that clutters the screen and makes it less informative: image

What we need:

  1. show smaller markers when we're zoomed out
  2. make them bigger after a certain zoom level has been reached
  3. change the marker icon to something minimalist

The thresholds and sizes have to be determined empirically. Not showing stations at all until a certain zoom level is set might be a good idea too.

roata commented 4 years ago

This is an RFC, let's discuss it before committing to implementing this in code.

There are three levels of granularity:

  1. high-level - this is a bird's eye view, this only gives a rough idea of where the stations are
  2. medium
  3. low-level

Icons The station icon should be a circle in the medium and low-level views: image

And a dot in the high-level view: image

At some point we might get a slick icon, if the branding issue is handled professionally by artists: https://github.com/roataway/web-ui/issues/67. Therefore, the implementation must not be tightly coupled to the idea of a dot and a circle, but allow any SVG graphic to be loaded.

Mock-ups The high-level view: image

Medium: image

Low-level: image

Rationale The station icons are there to provide quick answers to the following questions:

Future prospects

ralienpp commented 4 years ago

A proof of concept (using the standard LeafletJS) is available at https://github.com/roataway/examples/tree/master/javascript-websocket-leaflet

roata commented 3 years ago

An acceptable alternative is to rely on clustering: https://github.com/yuzhva/react-leaflet-markercluster