Unreasonable requirement of 'id' property in GeoJSON for choropleth
See original GitHub issueCurrently ipyleaflet obligates a geojson passed to Choropleth
constructor to have ‘id’ property on each feature
as mentioned in #361:
{"type": "FeatureCollection",
"features":[ {"type":"Feature",
"id":"AL",
"properties":{"name":"Alabama"},
"geometry":{"type":"Polygon",
"coordinates": [[[-87.359296,35.00118]]]
I find this at least obscure, since now I have to waste my time assigning these ids when they are already present in feature
, just going by the other name in its properties! Why can’t we just use name provided by user himself as id
?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
pandas - How to plot Choropleth map with folium and geoJson ...
There are a couple of issues: first, the geojson data is incorrectly specified. The second is that the ecuador_dict gets the value, and...
Read more >Create Choropleth Maps by Using Plotly | by Baysan - Medium
Plotly Choropleth looks GeoJSON's feature (geojson['feature']) objects's id by default. If we want we can change that, we can say “you have to ......
Read more >Choropleth maps in Python - Plotly
Making choropleth maps requires two main types of input: Geometry information: This can either be a supplied GeoJSON file where each feature has...
Read more >python uk postcode
A simple option if you have a limited set of cities, for example only cities in the UK: - google for a list...
Read more >hicmos.it mapbox animate line
I'd like to add a style property to a line that invokes flow. but if you see the ... geoJson or L. The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ohh cool 😃, you can assign this issue to me I can work on this.
Fixed by https://github.com/jupyter-widgets/ipyleaflet/pull/537