Open roata opened 4 years ago
This is an RFC, let's discuss it before committing to implementing this in code.
There are three levels of granularity:
Icons The station icon should be a circle in the medium and low-level views:
And a dot in the high-level view:
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:
Medium:
Low-level:
Rationale The station icons are there to provide quick answers to the following questions:
Future prospects
A proof of concept (using the standard LeafletJS) is available at https://github.com/roataway/examples/tree/master/javascript-websocket-leaflet
An acceptable alternative is to rely on clustering: https://github.com/yuzhva/react-leaflet-markercluster
At the moment the station markers are displayed in a way that clutters the screen and makes it less informative:
What we need:
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.