-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (31 loc) · 1.31 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./styles/style.css" />
<title>KML TO JS</title>
</head>
<body>
<h1>KML TO JS</h1>
<p>Converts Google Maps' .KML files to proper JS array.</p>
<input type="file" accept=".kml" name="" id="inputElement" />
<button class="button hidden" id="copy">Copy to clipboard</button>
<div class="hidden" style="white-space: pre" id="kmlContent"></div>
<ul>
<li>
Open the map link you want to convert. (<a
href="https://www.google.com/maps/d/u/0/edit?mid=1UUj-pCl0P74PpWwy_6TC7ZBDOqFfogE&usp=sharing"
target="_blank"
>example</a
>)
</li>
<li>Click on 3 dots in the top right corner.</li>
<li>Click on "Download KML".</li>
<li>Check the box <em>"Export to KML instead of KMZ. Does not support all icons"</em>.</li>
<li>Upload the file below, copy the generated text. Voilà!</li>
</ul>
</body>
<footer><a href="http://emre.ca" target="_blank">Emre</a> 👽 <a href="https://github.com/MostlyEmre/kml-to-js" target="_blank">GitHub</a></footer>
<script type="module" src="dist/main.js"></script>
</html>