میتوانید دادههای KML خود را بهعنوان مجموعه داده بارگذاری کنید و از سبکبندی دادهمحور برای نمایش آن روی نقشه استفاده کنید. این رویکرد عملکرد بهتر و گزینههای سبکبندی بیشتری ارائه میدهد.
همچنین میتوانید از کتابخانههای شخص ثالث برای تجزیه فایلهای KML در مرورگر و
نمایش دادهها بااستفاده از
لایه داده Maps JavaScript API یا سایر همپوشانیها استفاده کنید.
کتابخانههای طرف سوم پرطرفدار برای تجزیه KML عبارتاند از:
تاریخ آخرین بهروزرسانی 2026-10-21 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2026-10-21 بهوقت ساعت هماهنگ جهانی."],[],["This tutorial demonstrates how to display KML file information on a Google Map and in a sidebar. Key actions include: initializing a Google Map, creating a `KmlLayer` object to load a KML file from a URL, and configuring the layer to suppress info windows. An event listener is added to capture clicks on KML features. When a click occurs, the feature's `infoWindowHtml` content is extracted and used to update the content of a designated sidebar `div`, dynamically displaying the selected feature's information.\n"]]