@deck.gl/arcgis - unable to use transition property
See original GitHub issueDescription
With the current implementation of @deck.gl/arcgis
I’m unable to use the transitions:{...}
property.
Repro Steps
- Clone repo
- Navigate to
deck.gl/examples/get-started/pure-js/arcgis
npm install
npm install d3
- open
app.js
- add
import {easeCubicInOut} from 'd3';
- within
new GeoJsonLayer({...})
undergetFillColor:...,
add the transitions property per https://deck.gl/docs/api-reference/core/layer#transitions :
new GeoJsonLayer({
...
getRadius: (f) => 11 - f.properties.scalerank,
getFillColor: [200, 0, 80, 180],
transitions: {
getFillColor: {
duration: 3000,
easing: easeCubicInOut,
enter: (value) => [value[0], value[1], value[2], 0] // fade in
}
},
...
})
- Observe that points do not fade in as expected
Example: https://codesandbox.io/s/festive-smoke-u8de0?file=/app.js
Environment (please complete the following information):
- Framework Version:
@deck.gl/arcgis
v8.2.10 - Browser Version: Chrome 85
- OS: macOS 10.15.7
Logs
deck: WebGL2 not supported by this browser. Transition animation is disabled.
Note: I am using a WebGL2-compatible browser, I do not receive this error when running a standard deck.gl example
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Adding Interactivity - deck.gl
To add a transition animation, see view state transitions. Add Constraints to View State. An application can optionally supply the onViewStateChange callback ...
Read more >transition-property - CSS: Cascading Style Sheets | MDN
The transition-property CSS property sets the CSS properties to which a transition effect should be applied.
Read more >Allowed properties for CSS transition-property - Stack Overflow
Is there a de facto list of properties that can be transitioned using CSS3 transitions? For example the display property cannot currently be ......
Read more >CSS3 Transition Property Basics - SitePoint
The same is true for visibility ; you can't expect a block to be half hidden which, by definition, would be visible !...
Read more >Animating with CSS Transitions - A look at the ... - YouTube
The easiest way to add animation to your website is by using ... In this video, I explore the four different transition properties, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s still early to say for sure, but the ArcGIS JS API team is on track to merge WebGL 2 support in the upcoming release of the API.
This effort should fix this issue and close it “for real”.
Hello @zakjan sorry for the super-late reply.
It’s not in 4.19, nor in 4.20. As far as I know all of our code base is working fine in WebGL 2 mode, but we haven’t flipped the switch yet.
I think both the options of defaulting to 1 and allowing opt-in to 2, as well as defaulting to 2 and allowing opt-out to 1 are on the table.
I’ll keep you posted.