antvis / antvis/L7Draw

🐛 [BUG] 关闭圆绘制时导致mapbox的双击放大打开

Open
#152 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
52
Forks
35
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Bug description [Please make everyone to understand it]

- _Required_ **Link to minimal reproduction**: https://stackblitz.com/edit/stackblitz-starters-vcs1rx?file=src%2FApp.tsx

### 📷 Step to reproduce
```javascript
// 控制台调用
window._circle.disable()
```
### 🏞 Expected result
正常关闭圆形绘制或无任何反馈
### 🚑 Any additional [like screenshots]
当我调用此方法会导致mapbox的双击方法开启
![image](https://github.com/antvis/L7Draw/assets/63861052/a84e4e0a-18d6-4ea1-b1eb-ca34424d0667)

- **L7Draw Version**: "@antv/l7-draw": "^3.0.34",
- **Platform**: macos(14.1 (23B74)), chrome(118.0.5993.117)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the StackBlitz reproduction linked in the issue and run window._circle.disable() to observe the Mapbox double-click zoom behavior. Trace the disable entry point from that reproduction and verify that disabling circle drawing leaves double-click zoom unchanged or produces no unintended interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.