-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Bug] H3ClusterLayer failing to use get_fill_color
#7618
Labels
Comments
This seems to be a bug in deck.gl. I was able to reproduce it in the playground. Not a pydeck issue so I will update the labels. {
"initialViewState": {
"longitude": -122.4194155,
"latitude": 37.7749295,
"zoom": 11,
"pitch": 30,
"bearing": 0
},
"views": [
{
"@@type": "MapView",
"controller": true,
"mapStyle": "https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json"
}
],
"layers": [
{
"@@type": "H3ClusterLayer",
"data": "https://raw.githubusercontent.com/visgl/deck.gl-data/master/website/sf.h3clusters.json",
"pickable": true,
"stroked": true,
"filled": true,
"getHexagons": "@@=hexIds",
"getFillColor": "@@=[255, (1 - mean / 500) * 255, 0]",
"getLineColor": "@@=[255, 255, 255]",
"lineWidthMinPixels": 2
}
]
} |
The underlying issue has been fixed in v8.9.7. I believe pydeck is pinned to 8.8.x, though. @Jesus89 |
Awesome, thank you! |
Nice @Pessimistress. We will prepare a release of pydeck pointing to v8.9. |
7 tasks
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I ran the example script for the
H3ClusterLayer
and was unable to reproduce the yellow-to-red color variation as shown in the docs. My results look more like this:Calling %watermark gives the following:
Flavors
Expected Behavior
Steps to Reproduce
Start a fresh Jupyter notebook and run the following code:
Environment
Logs
No relevant messages
The text was updated successfully, but these errors were encountered: