我在我的項目中使用GoogleMap API,通過使用數據庫中的數據渲染特定車輛的位置,我已經實現了這一點,我的問題是如果它有可能獲得標記上的數字,一直在1 100個地方Decembre 2,我想有從1到100的數字開始顯示還挺其路徑,這是建立我的谷歌API的標記功能:Google Map API標記上的數字?
function createMarker(point, IMEI, Velocity, Ora, Data) {
var marker = new GMarker(point, iconBlue);
var html = "<b>" + "Ora: " + "</b>" + Ora + "<br/>" + "<b>" + "Data: " + "</b>"+ Data + "<br/>" + "<b>" + "Velocità: " + "</b>" + Velocity + " km/h" ;
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html); });
return marker;
}
感謝您的時間!