question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unreasonable requirement of 'id' property in GeoJSON for choropleth

See original GitHub issue

Currently 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:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
omangescommented, Mar 19, 2020

Ohh cool 😃, you can assign this issue to me I can work on this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found