Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [BUG]ChoroplethLayer中文本的位置不太正常 #212

Closed
hsp-sz opened this issue Jan 31, 2024 · 4 comments
Closed

🐛 [BUG]ChoroplethLayer中文本的位置不太正常 #212

hsp-sz opened this issue Jan 31, 2024 · 4 comments
Assignees

Comments

@hsp-sz
Copy link
Contributor

hsp-sz commented Jan 31, 2024

🐛 Bug description [Please make everyone to understand it]

缩略之后,名字文本都跑到了边界线了。再看看山东省的,直接跑到海里面了
image

Please provide a link by forking these links LarkMap or GitHub repo, a minimal reproduction.

  • Required Link to minimal reproduction:

📷 Step to reproduce

🏞 Expected result

🚑 Any additional [like screenshots]

  • LarkMap Version:
  • Platform:
@lvisei
Copy link
Member

lvisei commented Jan 31, 2024

@lvisei lvisei self-assigned this Jan 31, 2024
@hsp-sz
Copy link
Contributor Author

hsp-sz commented Feb 2, 2024

可自行指定行政的经纬度点

image

https://larkmap.antv.antgroup.com/components/layers/composite-layers/choropleth-layer#labelposition

问题是这个描述写的 默认几何中心点,你们这个默认几何中心点算得也不对啊。我这个issue提的意思不是说让我去指定,而是让你们去修复这个算的不正确的中心点。

@lvisei
Copy link
Member

lvisei commented Feb 2, 2024

对于不规则的多边形,几何中心点,自然不在“中心”,靠计算都不理想,比如河北,包围了北京,中心点都跑北京了,比如甘肃省,都跑外面去了,广东省的范围有沿海地区,中心点自动不在陆地,山东有海上小岛等等。行政省会点位的标记,按照地图制图合格性来说,行政名称必须标记实际的行政地理点位。对于合格行政地图的绘制,都是数据里面带有行政点位的,不是靠计算得来的。

@lvisei lvisei closed this as completed Feb 2, 2024
@hsp-sz
Copy link
Contributor Author

hsp-sz commented Feb 5, 2024

image
这个也合理是吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants