บทนำเกี่ยวกับเอกสารประกอบ KML
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หากเพิ่งเริ่มใช้ KML ให้เริ่มต้นด้วยการเรียกดูบทแนะนำ KML ซึ่งจะแสดงตัวอย่างโค้ด KML สั้นๆ ที่คุณดูได้ใน Google Earth
ข้อมูลอ้างอิง KML มีไวยากรณ์โดยละเอียดสำหรับองค์ประกอบ KML ทั้งหมด พร้อมคำอธิบายและไดอะแกรมเกี่ยวกับวิธีระบุองค์ประกอบ
คู่มือสำหรับนักพัฒนาซอฟต์แวร์มีเนื้อหาเชิงแนวคิดและตัวอย่างโดยละเอียด
การสร้างและแชร์ไฟล์ KML
คุณสร้างไฟล์ KML ได้ด้วยอินเทอร์เฟซผู้ใช้ของ Google Earth หรือจะใช้โปรแกรมแก้ไข XML หรือข้อความธรรมดาเพื่อป้อน KML "ดิบ" ตั้งแต่ต้นก็ได้ คุณบีบอัดไฟล์ KML และรูปภาพที่เกี่ยวข้อง (หากมี) โดยใช้รูปแบบ ZIP เป็นที่เก็บถาวร KMZ ได้ หากต้องการแชร์ไฟล์ KML และ KMZ คุณสามารถส่งไฟล์ทางอีเมล โฮสต์ไฟล์ในเครื่องเพื่อแชร์ภายในอินเทอร์เน็ตส่วนตัว หรือโฮสต์ไฟล์แบบสาธารณะในเว็บเซิร์ฟเวอร์ เช่นเดียวกับที่เว็บเบราว์เซอร์แสดงไฟล์ HTML เบราว์เซอร์ Earth เช่น Google Earth จะแสดงไฟล์ KML เมื่อกำหนดค่าเซิร์ฟเวอร์อย่างถูกต้องและแชร์ URL (ที่อยู่) ของไฟล์ KML แล้ว ทุกคนที่ติดตั้ง Google Earth จะดูไฟล์ KML ที่โฮสต์ไว้ในเว็บเซิร์ฟเวอร์สาธารณะของคุณได้
แอปพลิเคชันจำนวนมากแสดง KML รวมถึง Google Earth, NASA WorldWind, ESRI ArcGIS Explorer, Adobe PhotoShop, AutoCAD และ Yahoo! ท่อ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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."]]