-
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
Transitions no longer work with Deck 8 #4075
Comments
If you are using the standalone bundle, we made a change to align it with the rest of the API (pure JS/React). Unless you are listening to This is indeed missing from the upgrade guide section about the standalone bundle: https://github.com/uber/deck.gl/blob/8.0-release/docs/upgrade-guide.md#standalone-bundle I’ll update it. |
Hi, I am using React not the standalone build and it's not working. I have created a sample here; If you click between the different markers then the lat/lon numbers update right away. If you switch this sample to using version 7.3.8 then you will see that the transition is taking place. Thanks, |
Ah interesting. This is a side effect of a bug fix we made in v8, but we did not expect anyone to be using the old "wrong" behavior like you did. There are two patterns of controlling view state: state-less ( According to design and documentation (even before v8), if The "right way" to write your app is to listen to const [state, dispatch] = useMapView();
return (
<DeckGL
viewState={state}
onViewStateChange={({viewState}) => dispatch({
type: ActionType.SET_VIEWSTATE,
viewState
})}
controller={true}
/>
); I think there are a few things we can do to make this easier:
|
Thanks @Pessimistress , that works now. |
Description
I have upgraded from version 7.3.8 to version 8.0.1 and the transitions no longer work when changing the view state.
I am setting the transition properties on the viewState as per the following;
And I have also set
There is nothing in the upgrade guide about changes to transitions. Have there been changes here that haven't been included in the upgrade doco?
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: