2017-05-23 17 views

回答

0

假設你是在談論谷歌地圖標記。您可以使用標題以將文本添加到標記。 即

var myLatlng = new google.maps.LatLng(-25.363882,131.044922); 
var mapOptions = { 
    zoom: 4, 
    center: myLatlng 
} 
var map = new google.maps.Map(document.getElementById("map"), mapOptions); 

var marker = new google.maps.Marker({ 
    position: myLatlng, 
    title:"Hello World!" 
}); 

// To add the marker to the map, call setMap(); 
marker.setMap(map); 

檢查Markers

另一種選擇在這裏提到的文件是使用的標籤文本: How to add text label in Google Map API

+0

我不知道如何表達應用程序是爲了使用地圖的Android應用程序,我想從加油站獲取應用程序,我想要放置石油公司的圖像,並在中間點燃燃料或需要點擊,在標記中看到,我正在看書籤的標題,出現的只是一個標題字母,但我需要顯示更多字符。 –