mapbox-developer-group / Mapbox-Tech-Q-A

在提问之前请自行查看文档哦,养成好习惯:https://docs.mapbox.com/
32 stars 1 forks source link

图标在不同的地图层级下显示的数量不同,如何解决? #1

Open Jing-flyloveyin opened 5 years ago

Jing-flyloveyin commented 5 years ago

图标没有设置根据图层显示,在不同的地图层级下显示的数量还是会不同,是因为避免图标碰撞还是自动被抽稀了?

现在我希望不被抽稀或者即使图标互相重叠了也全部显示,应该怎么做呢?

image

image

提问者:Mapbox 开发者社群 @杨江南

shiyuan598 commented 4 years ago

可以试试把layout的'icon-allow-overlap'属性设置为true,该属性默认为false

barrycug commented 4 years ago

-B zoom or --base-zoom=zoom: Base zoom, the level at and above which all points are included in the tiles (default maxzoom). If you use -Bg, it will guess a zoom level that will keep at most 50,000 features in the densest tile. You can also specify a marker-width with -Bgwidth to allow fewer features in the densest tile to compensate for the larger marker, or -Bfnumber to allow at most number features in the densest tile --base-zoom=0

barrycug commented 4 years ago

首先要保证有所有数据,再考虑压盖的问题