Skip to content Skip to sidebar Skip to footer

Ol3: Extracting 'extended Data' From Kml

i have created a KML file with some custom attributes such as 'id' and 'room_id'. these attributes exist in the 'extended data' part of the KML file, here is the file:

Solution 1:

It's easy as:

 var properties = feature.getProperties();
 console.log(properties['id']);
 console.log(properties['room_id']);

Post a Comment for "Ol3: Extracting 'extended Data' From Kml"