folium icon indicating copy to clipboard operation
folium copied to clipboard

How about we kill the current way to do choropleth?

Open ocefpaf opened this issue 11 years ago • 8 comments

And add this plugin: https://github.com/timwis/leaflet-choropleth

ocefpaf avatar Nov 17 '15 16:11 ocefpaf

:+1: :+1: today's choropleth (geo_json in fact) method is rather heavy and involves several elements. I guess this plugin can let things be simpler.

:-1: yet another javascript dependency

BibMartin avatar Nov 17 '15 20:11 BibMartin

So are on the same page to add a new choropleth method, but not on using that plugin.

What do you suggest? Maybe we can just re-factor what we have and make it simpler?

ocefpaf avatar Nov 18 '15 19:11 ocefpaf

I'm very much in favour of changing the way choropleths are made. :+1:

map.geojson should be only an easy way to import/export basic features (like Markers, PolyLines and such), in a way similar to what http://geojson.io does. The attributes columns, key_on, threshold_scale, ... which are currently present in geojson and such are very choropleth related and not at all geojson-related.

themiurgo avatar Nov 18 '15 19:11 themiurgo

Is the intent to completely mirror the plugin? This would eliminate the option of specifying breakpoints. It would be preferable to have both options available - default breaks, as well as breaks set by the user.

Also, the current way to assign the value field used for coloring is a bit confusing. I'm still not 100 percent clear if I can use one of the geojson keys as the field input, or if it must come from a second source (as seen in the example in the doc page with the csv file).

baobobs avatar Dec 01 '15 18:12 baobobs

Hi @foodstamps. This issue is being addressed by #266. We won't be using the plugin for now.

ocefpaf avatar Dec 03 '15 20:12 ocefpaf

Thanks @ocefpaf!

baobobs avatar Dec 04 '15 19:12 baobobs

@ocefpaf Can we close this, or do we want to keep track of the plugin ?

BibMartin avatar Dec 10 '15 14:12 BibMartin

Safe to close. I guess the plugin bring no advantage to our current implementation.

ocefpaf avatar Dec 10 '15 15:12 ocefpaf