Giới thiệu về tài liệu KML
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Nếu mới làm quen với KML, hãy bắt đầu bằng cách duyệt xem Hướng dẫn về KML. Hướng dẫn này trình bày các mẫu ngắn về mã KML mà bạn có thể xem trong Google Earth.
Tài liệu tham khảo về KML cung cấp cú pháp chi tiết cho tất cả các phần tử KML, kèm theo nội dung giải thích và sơ đồ về cách chỉ định các phần tử đó.
Hướng dẫn dành cho nhà phát triển có chứa tài liệu và ví dụ chuyên sâu về khái niệm.
Tạo và chia sẻ tệp KML
Bạn có thể tạo tệp KML bằng giao diện người dùng Google Earth hoặc sử dụng trình chỉnh sửa XML hoặc văn bản đơn giản để nhập KML "thô" từ đầu. Bạn có thể nén tệp KML và hình ảnh liên quan (nếu có) bằng định dạng ZIP thành tệp lưu trữ KMZ. Để chia sẻ tệp KML và KMZ, bạn có thể gửi email, lưu trữ cục bộ để chia sẻ trong một mạng Internet riêng tư hoặc lưu trữ công khai trên một máy chủ web. Tương tự như cách trình duyệt web hiển thị tệp HTML, các trình duyệt Earth như Google Earth cũng hiển thị tệp KML. Sau khi bạn định cấu hình máy chủ đúng cách và chia sẻ URL (địa chỉ) của tệp KML, bất kỳ ai đã cài đặt Google Earth đều có thể xem tệp KML được lưu trữ trên máy chủ web công khai của bạn.
Nhiều ứng dụng hiển thị KML, bao gồm Google Earth, NASA WorldWind, ESRI ArcGIS Explorer, Adobe PhotoShop, AutoCAD và Yahoo! Ống.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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."]]