You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example for view state transitions in this repo shows the issue. Link here
Environment (please complete the following information):
Framework Version: ^8.0.0
I'm using some of the binary data features that came with v8 and I'd really like to do some view state transitions working. I've been using deck with Svelte and Mapbox. The example linked above shows no movement on transitions.
I tried recreating the above example using Svelte & Mapbox. Using the code below I can get the map to transition, but the Scatterplot layer does not transition with the base map, and interaction is locked to the final position after the transition.
// This is called on set uponMount(()=>{map=newmapboxgl.Map({// Setup Mapbox})deck=newDeck({
canvas,width: "100%",height: "100%",controller: true,initialViewState: INITIAL_VIEW_STATE,onViewStateChange: ({ viewState })=>{map.jumpTo({center: [viewState.longitude,viewState.latitude],zoom: viewState.zoom,bearing: viewState.bearing,pitch: viewState.pitch})},layers: [newScatterplotLayer({data: CITIES,getPosition: d=>[d.longitude,d.latitude],getColor: [255,180,0],radiusMinPixels: 10})]})})// This is called when a user selects a particular cityfunctionjump(city){return()=>deck.setProps({viewState: {latitude: city.latitude,longitude: city.longitude,zoom: 10,onTransitionInterruption: TRANSITION_EVENTS.BREAK,transitionDuration: 3000,transitionInterpolator: newFlyToInterpolator()},layers: [newScatterplotLayer({data: CITIES,getPosition: d=>[d.longitude,d.latitude],getColor: [255,180,0],radiusMinPixels: 10})]})}
I can share a repo if that's preferred, but a working example would probably be more useful for others.
The text was updated successfully, but these errors were encountered:
Description
View State Transitions in v8 aren't working
Repro Steps
The example for view state transitions in this repo shows the issue. Link here
Environment (please complete the following information):
I'm using some of the binary data features that came with v8 and I'd really like to do some view state transitions working. I've been using deck with Svelte and Mapbox. The example linked above shows no movement on transitions.
I tried recreating the above example using Svelte & Mapbox. Using the code below I can get the map to transition, but the Scatterplot layer does not transition with the base map, and interaction is locked to the final position after the transition.
I can share a repo if that's preferred, but a working example would probably be more useful for others.
The text was updated successfully, but these errors were encountered: