NYCPlanning / labs-postgis-preview

A lightweight express app and leaflet frontend for previewing PostGIS queries
MIT License
277 stars 57 forks source link

Wish list: Color gradient #45

Open hannahkates opened 8 years ago

hannahkates commented 8 years ago

Would love to have the ability to visualize a continuous variable with a color gradient

chriswhong commented 8 years ago

To do this, we just need a dialog to ask the user which column to visualize. Then when adding the geojson to the map, we use oneachfeature in leaflet to style it. I think there are JS modules that can handle the breaks algorithms, etc

On Thursday, August 4, 2016, hannahbkates notifications@github.com wrote:

Would love to have the ability to visualize a continuous variable with a color gradient

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NYCPlanning/postgis-preview/issues/45, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv7XDIY28yQIXbPxsgppyDnzkIYvKGnks5qclcsgaJpZM4JdIfd .

chriswhong commented 8 years ago

@timwis has already made the choropleth package we can use for this, we would just need to create the UI elements necessary to make it generic. https://github.com/timwis/leaflet-choropleth

timwis commented 8 years ago

Hey guys! cool project. was just shown http://dropchop.io/ in IRC, may also be of interest