简体   繁体   English

动态更改标记的颜色?

[英]Dynamic change color of Marker?

I want use different colors of marker to represent different values of some information. 我想使用不同颜色的标记来表示某些信息的不同值。 Because the value of that information is a successive value, so I need many colors for marker, does anybody know how to set different color of the Marker to implement it? 由于该信息的值是连续值,因此我需要为标记添加多种颜色,有人知道如何设置标记的不同颜色来实现它吗? I don't want to use different icon with different color, because it might need to many icon for marker. 我不想使用具有不同颜色的其他图标,因为它可能需要很多图标作为标记。

是的,您可以从http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries使用StyledMarker或RichMarker

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM