Google API - Google

By Quanna
at 2009-05-21T00:38
at 2009-05-21T00:38
Table of Contents
最近在網路上學怎麼弄 Google API
是用javascript
以下
var points = [new GPoint(121.537757, 25.009629), new GPoint(122.537757, 28.009629),
new GPoint(123.537757, 29.009629), new GPoint(124.537757, 18.009629),
new GPoint(130.537757, 17.009629)];
//]]>
for(var i = 0; i < 5; i++){
document.write(points[i] + " ");
var ttt = new GMarker(points[i]);
map.addOverlay(ttt);
}
為什麼這樣寫她只有插一個點呢??
我有把points每個值印出來
都對
但插點卻只有插到一個
不知錯在哪裡
難道沒辦法用loop一次插很多點嗎
還是有其他辦法呢??
煩請各位先進 不吝幫忙
感激不盡
--
是用javascript
以下
var points = [new GPoint(121.537757, 25.009629), new GPoint(122.537757, 28.009629),
new GPoint(123.537757, 29.009629), new GPoint(124.537757, 18.009629),
new GPoint(130.537757, 17.009629)];
//]]>
for(var i = 0; i < 5; i++){
document.write(points[i] + " ");
var ttt = new GMarker(points[i]);
map.addOverlay(ttt);
}
為什麼這樣寫她只有插一個點呢??
我有把points每個值印出來
都對
但插點卻只有插到一個
不知錯在哪裡
難道沒辦法用loop一次插很多點嗎
還是有其他辦法呢??
煩請各位先進 不吝幫忙
感激不盡
--
Tags:
Google
All Comments

By Daph Bay
at 2009-05-21T17:46
at 2009-05-21T17:46
Related Posts
calendar目前無法使用?重新轉向發生迴圈

By Jacky
at 2009-05-20T19:30
at 2009-05-20T19:30
Google feedburner和相關feed功能

By Joseph
at 2009-05-20T19:19
at 2009-05-20T19:19
請問如何用google chrome快速地訂閱RSS?

By Barb Cronin
at 2009-05-20T18:19
at 2009-05-20T18:19
Google GrandCentral ?

By Tracy
at 2009-05-20T17:51
at 2009-05-20T17:51
gmail無法附加mac page檔

By Frederica
at 2009-05-20T08:19
at 2009-05-20T08:19