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

PHP數字轉國字...

PHP數字轉國字...

什麼鬼...客戶系統的需求竟然有一個數字要轉成國字.... 數字轉國字...數字轉國字...就是要把...

SQL Injection

SQL Injection

SELECT * FROM users WHERE user=&#;aidan&#;...

CentOS 5.2 使用 YUM 將 PHP 5.1.6 更新到 5.2.6

CentOS 5.2 使用 ...

CentOS 5. 版內建的 PHP 版本為 5..,甚至於 5. 版仍舊是 5.. 版本。 基於系...

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