我們需要顯示在時間。我們兩個定位經度和緯度有兩個組緯度和經度這樣如何放置兩個位於經度和緯度的地方同時在jQuery Mobile的
[{"Longitude":"17.4954","Lattitude":"78.2960","UserID":3},{"Longitude":"17.3616","Lattitude":"78.4747","UserID":3}]
我的問題是它的腳只顯示最後的經度和緯度,只有我們編寫這
$(all).each(function() {
alert(this.Longitude);
alert(this.Lattitude);
debugger;
directionsDisplay = new google.maps.DirectionsRenderer();
var mapCenter = new google.maps.LatLng(this.Longitude, this.Lattitude);
debugger;
var myOptions = {
zoom:7,
mapTypeId: google.maps.MapTypeId.ROADMAP,
center: mapCenter
}
debugger;
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
directionsDisplay.setMap(map);
// directionsDisplay.setPanel(document.getElementById("directions"));
// marker will be displayed on the lat long position
var marker = new google.maps.Marker({
position:mapCenter,
map: map
});
});
所有變量獲取數據的動態是指一段時間內它的問世10的位置也 任何一個可以告訴我在我的code.and什麼錯誤請指引我。
? – Ethaan 2015-02-11 06:55:39
@Ethaan是的,我有10分 – 2015-02-11 07:02:13