KML 說明文件簡介
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如果您是 KML 新手,請先瀏覽 KML 教學課程,其中提供簡短的 KML 程式碼範例,您可以在 Google 地球中檢視。
KML 參考資料提供所有 KML 元素的詳細語法,並附上說明和圖表,方便您瞭解如何指定這些元素。
開發人員指南包含深入的概念資料和範例。
建立及共用 KML 檔案
您可以使用 Google 地球使用者介面建立 KML 檔案,也可以使用 XML 或簡單的文字編輯器,從頭輸入「原始」KML。您可以使用 ZIP 格式將 KML 檔案和相關圖片 (如有) 壓縮成 KMZ 封存檔。如要分享 KML 和 KMZ 檔案,您可以透過電子郵件傳送檔案、在本機代管檔案以在私人網路上分享,或是在網路伺服器上公開代管檔案。就像網路瀏覽器會顯示 HTML 檔案一樣,Google 地球等地球瀏覽器也會顯示 KML 檔案。正確設定伺服器並分享 KML 檔案的網址 (位址) 後,安裝 Google 地球的使用者就能查看公開網路伺服器上代管的 KML 檔案。
許多應用程式都會顯示 KML,包括 Google 地球、NASA WorldWind、ESRI ArcGIS Explorer、Adobe PhotoShop、AutoCAD 和 Yahoo! 管道。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eNew KML users can start with the KML Tutorial for basic code samples and visualization in Google Earth.\u003c/p\u003e\n"],["\u003cp\u003eThe KML Reference offers detailed syntax and explanations for all KML elements.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find in-depth conceptual material and examples in the Developer's Guide.\u003c/p\u003e\n"],["\u003cp\u003eKML files can be created using Google Earth or text editors, shared via email or web servers, and viewed in various Earth browsers like Google Earth.\u003c/p\u003e\n"],["\u003cp\u003eKML is supported by a wide range of applications, including Google Earth, NASA WorldWind, ESRI ArcGIS Explorer, and more.\u003c/p\u003e\n"]]],[],null,["# KML Documentation Introduction\n\nIf you're new to KML, begin by browsing the [*KML Tutorial*](/kml/documentation/kml_tut), which presents short samples of KML code that you can view in Google Earth.\n\nThe *[KML Reference](/kml/documentation/kmlreference)* provides detailed syntax for all KML elements, with explanations and diagrams of how to specify them.\n\nThe *[Developer's Guide](/kml/documentation/topicsinkml)* contains in-depth conceptual material and examples.\n\nCreating and Sharing KML Files\n------------------------------\n\nYou can create KML files with the Google Earth user interface, or you can use an XML or simple text editor to enter \"raw\" KML from scratch. KML files and their related images (if any) can be compressed using the ZIP format into KMZ archives. To share your KML and KMZ files, you can e-mail them, host them locally for sharing within a private internet, or host them publicly on a web server. Just as web browsers display HTML files, Earth browsers such as Google Earth display KML files. Once you've properly configured your server and shared the URL (address) of your KML files, anyone who's installed Google Earth can view the KML files hosted on your public web server.\n\nMany applications display KML, including Google Earth, NASA WorldWind, ESRI ArcGIS Explorer, Adobe PhotoShop, AutoCAD, and Yahoo! Pipes."]]