Skip to content

Instantly share code, notes, and snippets.

@EricG-Personal
Last active April 26, 2019 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EricG-Personal/589b293297f42759ba32dea3df04a7b5 to your computer and use it in GitHub Desktop.
Save EricG-Personal/589b293297f42759ba32dea3df04a7b5 to your computer and use it in GitHub Desktop.
The structure of my kmz file:
$ ls -laR test_kml
total 24
drwxr-xr-x 5 ericgorr staff 170 Apr 26 11:03 .
drwxrwxr-x 12 ericgorr staff 476 Apr 26 11:14 ..
-rw-r--r--@ 1 ericgorr staff 479 Apr 26 11:03 doc.kml
drwxr-xr-x 3 ericgorr staff 102 Apr 26 08:54 files
test_kml/files:
total 8
drwxr-xr-x 3 ericgorr staff 102 Apr 26 08:54 .
drwxr-xr-x 5 ericgorr staff 170 Apr 26 11:03 ..
-rwxr-xr-x@ 1 ericgorr staff 946 Nov 19 2012 car.png
My kml file is:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>MainDocument</name>
<Style id="my_mark">
<IconStyle>
<Icon>
<href>files/car.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<name>Simple placemark</name>
<description>single point.</description>
<styleUrl>#my_mark</styleUrl>
<Point>
<coordinates>-77,39,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment