Closed arikfr closed 6 years ago
Yes leafletjs is a good library, support many formats like GeoJson, and it's already use in Redash.
I'm fiddling around with leaflet-choropleth
module, and found out visualization shown below can be done quite easily.
However, I do not have real-life use cases, so I'm not sure what to do from here.
"properties"
within geoJSON column in query result. (geoJSON for above example).The first use case we want to accomodate is to be able to visualize a dataset the looks like:
Country | Users Count |
---|---|
JP | 3201 |
US | 2912 |
UK | 215 |
I.e. take value per country and visualize it on a map.
Later we can expand this to be more granular (zoom in on specific continent, cities, etc).
This is why I feel like Leaflet might not be the try solution as it starts with too much details.
But it has different base maps we can use so maybe one of them is what we need?
Yes. There are different base maps.
The example polygons on the example page just happened to be district-size. Leaflet/geoJSON can have country level polygons too. There are several versions of country level polygons available, so I will try to find suitable one and come back with visual example.
Any "catalog" of those base maps?
@deecay FYI - I'm already on this issue, and will create PR tomorrow (I see you're also experimenting with it, so I decided to tell you)
Oh, that's nice. Can't wait to see it!
Please allow me to ask one question here. Now that this is merged, how do we go about adding geojson files?
Due to highly individual needs and large file size, I think there should be some kind of way for admin to add their own geojson, and not to include all the country or city geojson in the bundle.
The geojson files are not in the bundle -- they are loaded separately. It probably shouldn't be too complex to add a way to load custom files from a URL.
@deecay if it is too complex, let us know! That probably just means we should document it better somewhere.
@arikfr when you plan release this feature? Any plans for next RC or Release?
Possible libraries: