2017-08-26 67 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

還有一個撥弄鏈接。