将多尺寸图标集群更改为单个图标 [英] Change multi size icon cluster to single icon

查看:146
本文介绍了将多尺寸图标集群更改为单个图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲。

这个表达式用于=> this.sizes = [53,56,66,78,90];?我从markercluster.js中找到它。
如果我想每次地图加载/或更改缩放地图时只限制地图上显示的100个标记,是否意味着我需要更改为=> this.sizes = [100]?

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]?

以及如何更改ClusterMarker.js之外的集群图标?根据默认值,群集图标将根据群集大小而改变。如何让群集图标保持不变并且不显示总标记数?

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?

对于我的问题抱歉。因为我真的不熟悉JavaScript。

Sorry about my question. Because I really not familiar on javascript.

希望有人能指导我。谢谢

Hope someone can guide me. Thank you

推荐答案

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?

这篇关于将多尺寸图标集群更改为单个图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆