x

KML Datei - einzelne Knoten auslesen


Geschrieben von Ghostrider82 (Gast) am 30. Mai 2015 11:35:21: [flux]

Hallo zusammen,

ich "plotte" eine KML Datei wie folgt auf eine Karte:

map.addLayer (kmllayer = new OpenLayers.Layer.Vector('KML', {

strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "mapkml.php5?"+Math.random(),
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true,
maxDepth: 20
})
})

}))
;

Gibt es eine Möglichkeit, per Javascript einzelne Knoten / Felder einzeln anzusprechen?

Beispiel:

alert(coordinate.knoten[1]);

oder

alert(coordinate.knoten[122]);

Je nachdem, welchen Knoten ich brauche?

Danke und Gruß
Boris


Antworten: