antvis / antvis/L7

MVT文本图层将textAllowOverlap设置为false在缩放地图时会失效

Open
#2,533 2 comments 0 reactions 1 assignee Claimed by @lvisei View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
656
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

在所给示例里面,点击关闭文本压盖,缩小地图,有时候避让的效果会失效

### 重现链接

https://stackblitz.com/edit/react-t6p3fz?file=index.js,index.html

### 重现步骤

1.进入页面
2.点击关闭文本遮盖
3.将地图缩放级别变小(缩小地图)

### 预期行为

我希望设置textAllowOverlap为false后不管怎么缩放地图,避让效果都应该存在

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]

### 屏幕截图或视频(可选)

![image](https://github.com/antvis/L7/assets/96167408/1f874476-29ae-4424-9afc-10318ce9f1a5)
![font](https://github.com/antvis/L7/assets/96167408/9ab335d2-5b8a-4fc2-97e6-150b2fdea449)

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.