Maps Cisterns in San Francisco using Javascript and Leaflet/MapTiles
The cistern.json files is a GeoJSON file
Part of the WaterWorks project (waterworks.io)
Known problems:
(1) Right now cisternjson.js returns a JSON object of a number of cisterns. Right now, this is a literal, just added there. This should be a non-blocking file-loading system.
(2) The last cistern marker is set by default
(3) Lots of formatting and positioning issues
Future Improvements:
(1) Title text
(2) Better design/layout: cisterns, custom colors and more
(3) Link back to WaterWorks project
(4) Actual html on left panel instead of sample text
Local development:
- Launch Terminal, cd into the cistern_map directory
- python -m SimpleHTTPServer
- In Chrome, go to: http://localhost:8000/
Notes: (1) water-works.css contains .slide-out-div -- here, we can specify a fixed width and height for the slider
by Scott Kildall @kildall