fill colors gdf
#527
-
Hi @giswqs , I just run your example geopandas notebook https://leafmap.org/notebooks/13_geopandas/ , however fill colors seems not working. How to solve this issue. thanks |
Beta Was this translation helpful? Give feedback.
Answered by
giswqs
Aug 31, 2023
Replies: 1 comment 4 replies
-
Run countries = "https://open.gishub.org/data/world/countries.geojson"
m = leafmap.Map(center=[0, 0], zoom=2)
style = {
"stroke": True,
"color": "#0000ff",
"weight": 2,
"opacity": 1,
"fill": True,
"fillColor": "#0000ff",
"fillOpacity": 0.1,
}
hover_style = {"fillOpacity": 0.7}
m.add_geojson(countries, layer_name="Countries", style=style, hover_style=hover_style)
m |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
giswqs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
leafmap.update_package()
and restart the kernel. Alternatively, you can control the style.