Closed hemedani closed 4 years ago
when using draggable feature and set the DrawControl component. the feature dragging are very lagy and unusable even when set the feature layer on top of the DrawControl component
<Map style="mapbox://styles/mapbox/streets-v9" center={[ 48.51456, 34.79922 ]} > <DrawControl onDrawCreate={this.logDraw}/> <Layer type="circle" id="position-marker" paint={POSITION_CIRCLE_PAINT}> <Feature coordinates={[ 48.51456, 34.79922 ]} draggable={true} onDragEnd={this.onDragEnd.bind(this)}/> </Layer> </Map>
Hey @hemedani, I updated react-mapbox-gl-draw, could you try again if the issue is still persisting?
If yes, could you please provide a code sandbox playground for me to test?
Stale
when using draggable feature and set the DrawControl component. the feature dragging are very lagy and unusable even when set the feature layer on top of the DrawControl component