react-native-mapbox-gl icon indicating copy to clipboard operation
react-native-mapbox-gl copied to clipboard

Animating SymbolLayer (iconSize)

Open ewindso opened this issue 7 years ago • 3 comments

Hello! I'm using MapboxGL.Animated.ShapeSource and within it a MapboxGL.Animated.SymbolLayer, with it's iconSize being an Animated.Value. I'm able to get it to animate in which is nice, but it's running on the JS thread... is there any way to get it to animate iconSize on the native thread?

Basically I am trying to pop SymbolLayers in as they appear.

ewindso avatar Jun 22 '18 17:06 ewindso

At the current moment there is no way to do this on the native thread. We don't have the bandwidth at the current moment but we are going to add native drivers for this.

If you or anyone needed to work around this you can write a native driver, and use the reactTag that's on the Sources and Layers to find them from the view registry on the native side and perform the animation. If any class properties are needed to become public to support this I would be happy to merge those types of changes in.

nitaliano avatar Jun 22 '18 17:06 nitaliano

Ok gotcha. Thanks for your quick response.

ewindso avatar Jun 22 '18 18:06 ewindso

@ewindso can you attach your JS thread animation code here please?

vadim-stoovo avatar Jan 18 '24 19:01 vadim-stoovo