Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用多达 31 个不同颜色的标记,它们同时显示在同一张地图上。任何帮助,将不胜感激。谢谢!
正如莫勒博士所说,没有限制。您需要为标记选项中的图标属性提供不同颜色的图像,如下所示。
var marker = new google.maps.Marker({position: latlng,map: map,title:title,icon:**IMAGE**});