KML-Daten einblenden
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Datengestützte Stile für Datasets
Sie können Ihre KML-Daten als Dataset hochladen und mit datengestützten Stilen auf der Karte darstellen. Dieser Ansatz bietet eine bessere Leistung und mehr Formatierungsoptionen.
Sie können auch Drittanbieterbibliotheken verwenden, um KML-Dateien im Browser zu parsen und die Daten mit der Datenebene der Maps JavaScript API oder anderen Overlays darzustellen.
Beliebte Drittanbieterbibliotheken zum Parsen von KML:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2026-07-09 (UTC)."],[],["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"]]