有誰知道爲什麼將KML文件加載到我的sencha touch谷歌地圖中將其放大到非洲海岸的海洋中?將KML文件加載到我的Google地圖中的問題
http://sencha1.s3-website-us-east-1.amazonaws.com/test.kml
{
xtype: 'map',
mapOptions: {
center : new google.maps.LatLng(33.573724,-85.101621),
zoom : 16
},
listeners: {
maprender : function(comp, map){
var routeLayer = new google.maps.KmlLayer('http://sencha1.s3-website-us-east-1.amazonaws.com/test.kml');
routeLayer.setMap(map);
//alert("hello!");
}
}
}
看起來像在Dropbox上的公用文件夾中託管文件對於那些積極開發的人來說是一種快速而簡單的方法。 – user1290284 2012-03-24 18:17:20