Hello to the list,

is it possible to write an file with some global definitions and
including this in an KML file? Something like:

./definition.kml:
[...]
<Style id="attribute_from_definition_file">
        <LineStyle>
                <color>ffff0000</color>
                <width>2</width>
        </LineStyle>
        <PolyStyle>
                <color>ffff0000</color>
        </PolyStyle>
</Style>

./kml-file.kml:
[...]
"<include>definitions.kml</include>"

<Placemark>
<visibility>1</visibility>
<name></name>
<Snippet maxLines="2"><![CDATA[foo]]></Snippet>
<description><![CDATA[foo]]></description>
<styleUrl>#attribute_from_definition_file</styleUrl>
<Point>
<extrude>0</extrude>
<altitudeMode>clampToGround</altitudeMode>
<coordinates>"lon","lat"</coordinates>
</Point>
</Placemark>
[...]

Thanks for the answers

Best regards

Juergen

-- 
Meine stets unfertige Homepage: www.dankoweit.de
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to