HSLdevcom / digitransit-ui

Digitransit UI ("Reittiopas.fi")
https://www.reittiopas.fi/
Other
242 stars 133 forks source link

cursor: pointer for bus stops #546

Open ttsirkia opened 8 years ago

ttsirkia commented 8 years ago

Is there a reason why the bus stops are rendered as canvas elements in the map? Because of this, it is impossible to set cursor: pointer for bus stops and other elements which are, however, clickable.

There are also components for these items but is there some historical reasoning between canvas elements and components or is this just an efficiency issue? For example, when showing a route, bus stops are rendered as components instead of canvas elements.

hannesj commented 8 years ago

Hi, thanks for the feedback. The stops used to be rendered as SVG icons, but unfortunately caused disappointing performance on Windows Phone and older Android devices. Due to that, the rendering was changed to use Canvas objects in DT-842. We currently don't want to support two rendering methods for the stops on the map, but this will become important when focusing on the desktop version in a couple of sprints.

ttsirkia commented 8 years ago

It seems that when the zoom level is so small that bus stops just become visible, bus stops are elements with cursor: pointer but in that case it is not possible to click them.