overlaying bus routes on a map.
because i couldn't find this anywhere else on the internet.
medium post about v1 of this project here
click once to highlight bus routes under the click. click again on a highlighted route to "superhighlight" routes under that click. click elsewhere to reset highlighting.
use the menu in the upper right corner to see the names of the highlighted bus routes.
- Clone this repo
- in the directory for your local clone:
npm install
npm run data
npm run start
data from (http://transitfeeds.com/p/sfmta/60, downloaded on 2017-11-14
included here since the shapefiles are derived from the sfmta gtfs data:
Reproduced with permission granted by the City and County of San Francisco. The information has been provided by means of a nonexclusive, limited, and revocable license granted by the City and County of San Francisco.
The City and County of San Francisco does not guarantee the accuracy, adequacy, completeness or usefulness of any information. The City and County of San Francisco provides this information "as is," without warranty of any kind, express or implied, including but not limited to warranties of merchantability or fitness for a particular purpose, and assumes no responsibility for anyone's use of the information.
- https://www.mapbox.com/mapbox-gl-js/example/queryrenderedfeatures-around-point/
- https://www.mapbox.com/mapbox-gl-js/example/polygon-popup-on-click/
- https://www.mapbox.com/mapbox-gl-js/example/color-switcher/
- https://www.mapbox.com/mapbox-gl-js/example/restrict-bounds/
- https://www.mapbox.com/mapbox-gl-js/example/filter-markers/
- https://www.mapbox.com/mapbox-gl-js/example/measure/
- https://www.mapbox.com/mapbox-gl-js/example/data-driven-circle-colors/
- https://www.mapbox.com/mapbox-gl-js/example/geojson-line/