dabreegster / bus_spotting

https://dabreegster.github.io/bus_spotting/
Apache License 2.0
5 stars 0 forks source link

Basemap #1

Open dabreegster opened 2 years ago

dabreegster commented 2 years ago

There's currently no map displayed underneath all the bus data: Screenshot from 2022-06-06 15-08-27

We need one just to be able to orient. Many options for how we pull this off...

dabreegster commented 2 years ago

https://user-images.githubusercontent.com/1664407/174091260-ef41a1e0-b17c-42fc-9459-3a8449dcb2ba.mp4

The "inverse piggyback" mostly works. We have two WebGL contexts on top of each other. Mapbox has all interactions disabled. When the canvas moves in the widgetry app, we just force the mapbox camera to re-sync. It's jittery, but works!

@dingaaling We should explore this trick for the LTN tool. If it'd be useful for the basemap to be a satellite layer or regular Mapbox styling, we can just choose what LTN-specific styling / controls to draw on top.

dabreegster commented 2 years ago

MVP now merged. Still need to figure out why Mapbox updating is jittery, and probably have a way to lower the opacity of the stuff the app draws, to actually see the roads underneath.