Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify routes prior to sending to Django template (#124)
* Add layer toggle to map Following official Leaflet tutorial closely: https://leafletjs.com/examples/layers-control/ Separate out commands to instantiate map layers from commands to add them to map. Create a "control" object whose "overlayMaps" parameter determines which features can be toggled on or off. For now, set all "stations" as one toggle-able feature, and all "routes" as another. TODO: separate out different station/route layers based on mode of transit and/or line of interest. This would likely involve initializing distinct layers (e.g. busStations, railStations, busRoutes...) and then using conditional logic (perhaps relying on passing in the `route_type` GTFS number) to determine what goes where * Respond to black failure notification by running black on two files Weirdly these weren't files I edited in any way prior to previous commit * Get simplified routes working --------- Co-authored-by: Matthew Jackson <mbjackson@Matthews-MacBook-Air.local>
- Loading branch information