[OpenLayers-Users] Includes in KML Files
Jürgen Dankoweit
Juergen.Dankoweit at T-Online.de
Wed Jun 6 08:41:05 PDT 2012
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
More information about the Users
mailing list