Skip to content

Commit

Permalink
test custom enconding
Browse files Browse the repository at this point in the history
  • Loading branch information
Raruto committed Jun 6, 2022
1 parent 64f1dca commit 48653a1
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
});

// Add remote KMZ files as layers (NB if they are 3rd-party servers, they MUST have CORS enabled)
kmz.add('./test-encoding.kml');
kmz.add('../examples/regions.kmz');
kmz.add('../examples/capitals.kmz');
kmz.add('../examples/globe.kmz');
Expand Down
71 changes: 71 additions & 0 deletions test/test-encoding.kml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>Example KML file</name>
<description><![CDATA[Example KML file]]></description>
<Style id="style1">
<IconStyle>
<Icon>
<href>//maps.google.com/mapfiles/ms/icons/blue-dot.png</href>
</Icon>
</IconStyle>
</Style>
<Style id="style2">
<LineStyle>
<color>40000000</color>
<width>3</width>
</LineStyle>
<PolyStyle>
<color>A600CC33</color>
<fill>1</fill>
<outline>1</outline>
</PolyStyle>
</Style>
<Style id="style3">
<LineStyle>
<color>E60000FF</color>
<width>15</width>
</LineStyle>
</Style>
<Placemark>
<name>Time Square</name>
<description><![CDATA[Times Square is a major commercial intersection and neighborhood in Midtown Manhattan, New York City.]]></description>
<styleUrl>#style1</styleUrl>
<Point>
<coordinates>-73.984939,40.758874,0.000000</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Central Park</name>
<description><![CDATA[Central Park is an urban park in middle-upper Manhattan, within New York City.]]></description>
<styleUrl>#style2</styleUrl>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<tessellate>1</tessellate>
<coordinates>
-73.981508,40.768632,0.000000
-73.957845,40.800289,0.000000
-73.949348,40.796797,0.000000
-73.973093,40.764732,0.000000
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
<Placemark>
<name>Lincoln Tunnel</name>
<description><![CDATA[Traffic(under 10 minutes)]]></description>
<styleUrl>#style3</styleUrl>
<LineString>
<tessellate>1</tessellate>
<coordinates>
-74.022749,40.766578,0.000000
-74.021955,40.767206,0.000000
-74.020571,40.767279,0.000000
-74.000079,40.758980,0.000000
</coordinates>
</LineString>
</Placemark>
</Document>
</kml>

0 comments on commit 48653a1

Please sign in to comment.