amaury1093 / react-mapbox-gl-draw

Draw tools for Mapbox with React: 🗺️ react-mapbox-gl + 🖌️ mapbox-gl-draw
MIT License
184 stars 28 forks source link

incompitable with dragging feature element #9

Closed hemedani closed 4 years ago

hemedani commented 6 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> 
amaury1093 commented 5 years ago

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?

amaury1093 commented 4 years ago

Stale