jbccollins / metro-monitor

:metro: A live filterable map of the DC Metro system. Features train positions, station arrival predictions and WMATA alerts all in once place!
https://www.dcmetromonitor.com
Other
14 stars 2 forks source link

Use multistroke paths for lines #75

Open jbccollins opened 5 years ago

jbccollins commented 5 years ago

https://jsfiddle.net/jbccollins/c5sz1uyv/

This is a high effort low return enhancement. But it would be nice. Would probably require extending leaflet's Polyline. And then writing a react-leaflet wrapper around that.

jbccollins commented 4 years ago

https://github.com/bbecquet/Leaflet.PolylineOffset May be useful here. I'd need to write a react wrapper for it tho. It appears to be buggy when zoomed out. There are a few PRs to fix that but the library seems to be unmaintained.

Relevant Demo: https://bbecquet.github.io/Leaflet.PolylineOffset/examples/example_bus.html