[OpenLayers-Users] Read Kml Placemark properties

Peter pfischer at proveo.com
Fri Feb 17 09:06:00 EST 2012


hallo,

i add some areas to my map from a kml file. the placemark in the kml is like
the following example:

 <Placemark targetId="0" id="1">
            <name>ACC_all</name>
            <description>Accra airport all</description>
            <styleUrl>#style_1772054883</styleUrl>
            <Polygon>
                <altitudeMode>clampToGround</altitudeMode>
                <outerBoundaryIs>
                    <LinearRing>
                        <coordinates>-0.17803027777777777,5.620930555555556
-0.17803027777777777,5.589093888888889
-0.15768361111111112,5.589093888888889
-0.15768361111111112,5.620930555555556
-0.17803027777777777,5.620930555555556</coordinates>
                    </LinearRing>
                </outerBoundaryIs>
            </Polygon>
        </Placemark>

so my problem now is that i have to read out in openlayers the 'targetID'
and the 'id' in the 'placemark' tag itself. i tried to do the same like in
the kml parser example but i am only able to reach the attributes like
'name' or 'description'.
 
So do you have any ideas? 

Thanks for your help and a have nice weekend 

greetings

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Read-Kml-Placemark-properties-tp4480192p4480192.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list