Skip to content

About Urban Drool Tool

Ashley Kang edited this page Sep 1, 2017 · 7 revisions

Welcome to the Urban Drool Tool docs!

Project

View and suggest tasks (by opening an Issue) on the Project board.

Setup

Theresa has documented how we set up our GitHub Pages site with Jekyll.

Tools

  • .zip of data in R (includes .dbf) from OC Public Works & Moulton Niguel Water District
  • Mapbox Studio (ask a CodeLab organizer for account info), GL JS API
  • GitHub Pages (Jekyll)

Structure

Basemap, Tileset, Dataset (provided by CA Data Collaborative)

Shape file (.shp) contains point / line / polygon

  • Bright blue point = discharge points (stormwater drains)
  • Orange polygon (set at 0 fill color opacity) = census blocks
  • Light blue polygon = discharge tributaries

Tips

Features

  • To click on points for more info > Display a popup on click > using Mapbox Classic / Leaflet > Mapbox GL JS (Mapbox is built on top of Leaflet) <div class="leaflet-popup-pane"></div> > GeoJSON provides keys & values

Questions/To-Do List

  • Separating UI from data
  • Adding input box for user to enter address and find nearest storm drain
  • Indicating areas outside of region (ex: gray-out?)
  • Using census blocks to compare water usage with # of residents vs. industrial water waste, income levels
  • Converting polygon data as .shp files to GeoJSON (because Mapbox only takes GeoJSON data)
  • Where is the geodata/coordinates stored on Mapbox? > back-end?
  • Referring to data
  • Returning Mapbox geocoder > Where is search bar getting the location? https://github.com/codelaboc/CA-Stormwater-Data-Challenge/issues/9
  • When map loads, add an empty feature collection so we can put a point in it
    • Markers on this layer
    • ev = event
    • getSource
  • How to do a popup in Mapbox GL

Resources for writing documentation

Clone this wiki locally