Loading...

Google map 語言本地化

Temperature: 0 °C

ChungChung
author_tools

網路世界的強大...真的是解決問題的好幫手.....雖說有些答案並不可靠....

但原則上...只要願意找..真的會有答案哩!!

Google Maps API 在顯示文字資訊 (例如控制項名稱、版權聲明、行車導航和地圖上的標籤) 時,會採用瀏覽器的語言偏好設定。此設定在大多數情況下都是符合需求的,您通常不會希望覆寫使用者的語言偏好設定。不過,如果您想要修改 Maps API,讓它忽略瀏覽器的語言設定並強制以特定語言顯示資訊,您可以在加入 Maps API JavaScript 程式碼時,選擇將 language 參數加入 <script> 標記,即可指定要使用的語言。

舉例來說,如要以日文顯示 Maps API 應用程式,請依照下列方式將 &language=ja 加到 <script> 標記:


<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&language=ja">

參考連結自 https://developers.google.com/maps/documentation/javascript/basics?hl=zh-tw

https://innstory.com/story-Google_map_語言本地化-264
寫程式筆記

Prev
 未完成的金頓國際大飯店

Next
回檳城走走之青年公園眼鏡葉猴 

About the Author

Chung

我是chung
網路工作者
主業是網站系統開發建置
副業是做夢,寫故事
作品請參考/teme.biz
做夢請參考/innstory.com
聯絡/chung.teme@gmail.com

#有人用筆寫日記,有人用歲月寫日記,有人用照片寫日記,而我,用innstory寫日記。

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

在手機上如何建立網址到手機桌面中並且使用圖示

在手機上如何建立網址到手機桌...

上回做專案時,客戶說了手機桌面上的網站捷徑太醜,想要美化。 這回索性也幫Innstory美化一下,順...

jQuery效果滑動隱藏

jQuery效果滑動隱藏

因為需要所以紀錄下來,主要是要透過點選按鈕將字串隱藏或顯示出來... 雖說可以直接用hide或是sh...

IE10 在 fckeditor無正常顯示及無法輸入任何字元

IE10 在 fckedit...

於fckorcodeie.js 檔案中, 在B.open(‘GET’, A, false); 及 B...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format