将多尺寸图标簇更改为单个图标
亲。
该表达式的用途 => this.sizes = [53, 56, 66, 78, 90];?我从markercluster.js 找到了它。 如果我想限制每次地图加载/或更改缩放地图时地图上仅显示 100 个标记,这是否意味着我需要更改为 => this.size = [100]?
如何在 ClusterMarker.js 之外更改集群图标?默认情况下,簇图标会根据簇大小而变化。如何使簇图标不变而不显示其中的总标记数?
抱歉我的问题。因为我对javascript实在不熟悉。
希望有人能指导我。谢谢
pro.
What this expression use for => this.sizes = [53, 56, 66, 78, 90];? I found it from markercluster.js.
If I want to limit only 100 markers appear on map for every time the map load/ or onchange the zooming map, does it mean I need to change to => this.sizes = [100]?
And how to change cluster icon outside ClusterMarker.js? Based on default, cluster icon will change according cluster size. How to make the cluster icon constant and without showing the number of total marker in it?
Sorry about my question. Because I really not familiar on javascript.
Hope someone can guide me. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
this.sizes = [53, 56, 66, 78, 90];是聚类图像的尺寸,而不是标记的数量。
如果您想限制标记的数量,您应该在从中获取标记的文件中限制它们。
您可以使用群集选项更改群集图标。
您使用什么版本的markerclusterer?
this.sizes = [53, 56, 66, 78, 90]; are the dimensions of the cluster image, and not the number of markers.
If you want to limit the number of markers you should limit them in the file you get them from.
You change the cluster icon by using cluster options.
What version of markerclusterer do you use?