以一种颜色获取Google Map MarkerClusterer Plus图标 [英] Getting Google Map MarkerClusterer Plus Icons In One Color

查看:277
本文介绍了以一种颜色获取Google Map MarkerClusterer Plus图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以让我知道如何设置MarkerClusterer加上显示所有群集在一个颜色?正如你所看到的,MarkerClusterer会自动改变簇的颜色,当它们出现在一个范围内时,但我希望将它们全部变为一种颜色?

谢谢




<解决方案

你喜欢的颜色是由cluster.js文件附带的图像定义的。



范围从m1.png到m5.png:



只需复制图像并将它们制成您想要的所有颜色


Can some one please let me know how to set MarkerClusterer plus to show all Clusters in One color? as you can see the MarkerClusterer automatically changes the color of the clusters when they are out on a range but I want get them all in one color?

Thanks

解决方案

Hi the colors are defined by the images which came with the cluster.js file

Your images will range from m1.png to m5.png:

Just copy the images and make them all the color which you want

这篇关于以一种颜色获取Google Map MarkerClusterer Plus图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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