Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color map #78

Closed
shi093 opened this issue Jul 9, 2021 · 1 comment
Closed

color map #78

shi093 opened this issue Jul 9, 2021 · 1 comment

Comments

@shi093
Copy link

shi093 commented Jul 9, 2021

How to color a polygon layer based on a variable value? like the thermal map. The polygons can be colored by specifying fillColor in Style, like the example in your tutorial:
style = {
"stroke": True,
"color": "#FFFFFF",
"weight": 1,
"opacity": 0.7,
"fill": True,
"fillColor": "blue",
"fillOpacity": 0.4,
}
Is there a way to make "fillColor" a function of a data field from geopandas dataframe the map plots?

Thank you very much.

@giswqs
Copy link
Member

giswqs commented Jul 9, 2021

See #28 (comment)

@giswqs giswqs closed this as completed Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants