mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Question: Animate Line-,ImageLayer & Marker at same frame.

Open enersis-pst opened this issue 2 years ago • 0 comments

Here are different layers (Image, Line, Circle, Marker(rotation-Icon)). All lines and circles should be lying on the same borders and edges of the image. In this example i move them to bottom (at the end they stay at the correct position). By moving the mouse i pan all this layers. Looks like rendering of image and Marker is fast, but line and circle is a bit laggy.

before moving image

while moving image

Would it be possible to render it synchron? I call setData & setCoordinate at same time. Also i sync my moveEvent with requestAnimationFrame.

enersis-pst avatar Sep 22 '22 13:09 enersis-pst