Wednesday, October 12, 2011

如何引用Google Maps做為 Oracle Mapviewer 底圖

Oracle Mapviewer可以引用外部圖資做為其底圖, 如Google Map,...等。接下來說明如何在Oracle Mapviewer設定使用 Google Maps。
透過web proxy存取Google Maps
如果Oracle Mapviewer是在公司內部防火牆內,則先要能對外存取Google Map。一般來說公司都會允許透過web proxy來對外存取外部的網站。所幸,Google Maps是web-based的maps,可以在Mapviewer的設定檔內設定透過web proxy來存取Google Maps。

設定完成之後,記得要重新啓動Mapviewer。
取得Google Maps API Key
要取得 Google Maps API key,先要有Google的帳號。這個部分應該相當容易,就不敍述了。接下來到Sign Up for the Google Maps API,將 Oracle Mapviewer執行的主機註冊。例如我的 Mapviewer執行主機的IP為10.179.187.1(Google是建議使用主機名稱與網域進行註冊)。


設定 Oracle Mapviewer部部圖資來源
輸入相關的資訊
該是檢視成果的時候了
成果如下: