2010年9月30日

在 Android 手機使用 RMaps + 自製離線地圖

  • 在 Windows 安裝 Mobile Atlas Creator
  • 在 Ubuntu 10.04 安裝 Mobile Atlas Creator
  • 製作離線地圖資料庫
  • 在 Android 手機使用 RMaps + 自製離線地圖

在 Windows 安裝 Mobile Atlas Creator

  1. http://sourceforge.net/projects/trekbuddyatlasc/files/ 下載 Mobile Atlas Creator 1.8 beta 2.zip,
    解壓縮到 C:\mobac
  2. 下載 sqlitejdbc, 儲存到 C:\mobac
  3. 雙擊 C:\mobac 裡面的 Mobile Atlas Creator 執行檔即可執行 Mobile Atlas Creator

ps.如果電腦未安裝 JRE v1.6.0_14 (Java Runtime Environment Version 6 Update 14) 以上的版本,
可到這裡下載安裝

-

在 Ubuntu 10.04 安裝 Mobile Atlas Creator

  1. 安裝 JRE: sudo apt-get install default-jre
  2. 下載 Mobile Atlas Creator 1.8 beta 2.zip
  3. 解包到 ~/mobac: unzip Mobile\ Atlas\ Creator\ 1.8\ beta\ 2.zip -d ~/mobac
  4. 將 sqlitejdbc 下載到 ~/mobac: wget http://files.zentus.com/sqlitejdbc/sqlitejdbc-v056.jar -P ~/mobac
  5. 執行 Mobile Atlas Creator: cd ~/mobac; sh ./start.sh

-

製作離線地圖資料庫

基本操作

  • 畫面左邊選單:
    • Map source 選 Yahoo Maps Taiwan
    • Zoom Levels 選 17
    • Atlas settings 的 Format 選 RMaps SQLite
  • 畫面右邊地圖: 按住滑鼠右鍵移動地圖, 滾輪放大縮小, 按住左鍵圈選製作離線地圖的範圍
  • 地圖範圍選定後, 按 Atlas Content 底下的 Add selection 按鈕
  • 按 Saved profiles 底下的 Create atlas 按鈕即可開始製作選定範圍的離線地圖
  • 產生的離線地圖資料庫檔案預設存放於 mobac 底下的 atlases 目錄內

進一步說明

  • Zoom Levels 可一次勾選多個, 例如 15、16、17, 所製作的離線地圖就能在 RMaps 進行縮放
  • 地圖畫面上緣有 Grid zoom 選單, 可用格線方式輔助圈選地圖範圍
  • 選定地圖範圍後, 按下 Add selection 按鈕即可加入該次所選範圍, 與上述 Grid zoom 搭配使用就能達到分次圈選連續範圍的目的
  • 在 Atlas Content 裡面的 Unnamed atlas 按右鍵, 選 Rename 可更改名稱, 該名稱將會是離線地圖存檔檔名的一部份

-

在 Android 手機使用 RMaps + 自製離線地圖 (於手機操作)

到 Market 搜尋並安裝 "RMaps" (http://cn.androlib.com/android.application.com-robert-maps-jFxB.aspx)

將剛剛在 PC 製作的離線地圖 (your_filename.sqlitedb) 複製到手機 SD Card 的 /rmaps/maps/ 路徑下

執行 RMaps, 點選 menu -> 更多 -> 設定 -> 使用者定義地圖 -> your_filename.sqlitedb -> 啟用地圖

回到 RMaps 主畫面, 點選 menu -> 地圖 -> your_filename.sqlitedb 就能使用自製離線地圖

沒有留言:

發佈留言