Skip to content
Advertisement

Folium GeoJson Custom Color Map

I have a multipart shapefile I am attempting to display on a map using Folium. Code is as follows:

JavaScript

The gdf currently looks like this I am attempting to map the color to corresponding “RANK” value:

enter image description here

However, my fillcolor is not correctly adjusting and is just remaining one color:

enter image description here

How do I correctly assign a colormap to my folium map?

Advertisement

Answer

Solved it:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement