2017-08-26 64 views

回答

0

在这里,你去了一个解决方案

marker = new google.maps.Marker({ 
    position: position, 
    map: map, 
    title: "12", 
    label: "12", // --- this is what you need to use. 
    visible: true, 
    icon: '/images/location.png' 
}); 

您应该使用label在上始终显示值。

参考文献:从谷歌文档https://jsfiddle.net/api/post/library/pure/

希望这将帮助你https://developers.google.com/maps/documentation/javascript/marker-clustering

还有一个拨弄链接。