Javascript 按住shift键并单击鼠标右键选择多个圆
我使用多个圆圈的非地理地图Javascript 按住shift键并单击鼠标右键选择多个圆,javascript,reactjs,leaflet,Javascript,Reactjs,Leaflet,我使用多个圆圈的非地理地图 <Map ref={(map) => { this.map = map}} center={this.state.center ? this.state.center : this.getCalculatedCenterFromState()} zoom={this.state.zoom ? this.state.zoom : this.getCalculatedZoomFromState()} crs={this.mapService.g
<Map
ref={(map) => { this.map = map}}
center={this.state.center ? this.state.center : this.getCalculatedCenterFromState()}
zoom={this.state.zoom ? this.state.zoom : this.getCalculatedZoomFromState()}
crs={this.mapService.getProjectionType()}
zoomControl={false}
dragging={ false }
>
<FeatureGroup>
<EditControl position='topleft'
onEdited={this._onEdited}
/>
<Circle center={[51.51, -0.06]} radius={100} />
<Circle center={[151.51, -0.06]} radius={100} />
</FeatureGroup>
</Map>
{this.map=map}
center={this.state.center?this.state.center:this.getCalculatedCenterFromState()}
zoom={this.state.zoom?this.state.zoom:this.getCalculatedZoomFromState()}
crs={this.mapService.getProjectionType()}
zoomControl={false}
拖动={false}
>
我想按住shift+ctrl
和左键单击来选择两个圆(如果可能的话)
我还有react传单绘制插件,我需要通过按住SHIFT
和左键单击来选择多个圆
默认情况下,SHIFT+左键单击
show select box as zoom section,如图所示
我需要以某种方式覆盖默认的传单行为,并选择那些圆圈,而不是放大如果您提供一个简单的工作演示,它将揭示错误和您将要实现的目标,那会更好。你也可以在那里展示你已经尝试过的东西。我有一个更新问题和一些代码示例。我试图展示这个有效的例子,但没有成功。