= 2009-02-04 =
* 原本 waue 發表的[wiki:oid/WorkLog/GoogleMPL Google Map的網址模組轉換],在官方的名稱為 [http://code.google.com/intl/zh-TW/apis/maps/documentation/mapplets/ Google Mapplets API]。
* Google Mapplet API 跟 Google Map API 最主要的差別在於 Mapplet 是在官方 Google Map 上呈現,而 Google Map API 則可以用在自己的網站上。
{{{
The main difference is that Mapplets run on Google Maps,
while the traditional Maps API is used to create maps on other websites.
}}}
* "赤壁"原始碼 - http://code.google.com/p/redcliff/source/checkout
{{{
svn checkout http://redcliff.googlecode.com/svn/trunk/ redcliff-read-only
}}}
* 赤壁的 Mapplet
[[Image(redcliff.jpg)]]
* 在原始碼中,people.json 是用來顯示"主要人物"這個 Tag 的資料來源
[[Image(people.json.jpg)]]
* 在原始碼中,big_event.json 是用來顯示"歷史事件"這個 Tag 的資料來源
[[Image(big_event.json.jpg)]]
* 在原始碼中,event.json 是用來顯示點選"歷史事件"其中一個事件後,顯示各事件的關連資料來源
[[Image(event.json.jpg)]]
* 在原始碼中,location.json 是用來把歷史古城的位置用貼圖方式顯示的經緯度資料來源
[[Image(location.json.jpg)]]
* 在原始碼中,element.json 是用在點選特定古城位置時,顯示關聯事件的資料來源
[[Image(element.json.jpg)]]
* [http://redcliff.googlecode.com/svn/trunk/mapplet/redcliff_tc.xml 赤壁 Mapplet] 原始碼 XML 解析
{{{
#!js
# 參考 http://code.google.com/intl/zh-TW/apis/maps/documentation/mapplets/basics.html#Loading_the_Mapplets_API
# 必須加入 sharedmap 的 feature 才能讓 mapplet 載入定義在 Content 中的 javascript 程式
@CHARSET "UTF-8";
### 以下略過 CSS 定義 ###
# 初始化的時候,顯示"正在讀取..."的圖示跟字樣