Skip to content

Commit 950a81d

Browse files
authored
Add files via upload
1 parent ae726e0 commit 950a81d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

kmlcreate.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<h2>Convert lat-long string from ona.io to KML</h2>
2222
<p>Input: <br>
2323
<textarea id="input"></textarea><br>
24-
<button onclick="text2kml()" class="bigbutton">Convert to KML</button></p>
24+
<button onclick="text2kml()" class="bigbutton">Convert to KML</button> | <button onclick="example()">load example</button></p>
2525

2626
<p>Output - polygon: <br>
2727
<textarea id="polygon"></textarea><br>
@@ -81,6 +81,10 @@ <h2>Convert lat-long string from ona.io to KML</h2>
8181
document.getElementById('line').value = document.getElementById('polygon').value.replace('<Polygon><outerBoundaryIs><LinearRing>','<LineString>').replace('</LinearRing></outerBoundaryIs></Polygon>','</LineString>');
8282
}
8383

84+
function example() {
85+
document.getElementById('input').value = '18.530663 73.875515 0 0;18.534935 73.874657 0 0;18.534925 73.87626 0 0;18.531995 73.876925 0 0;18.530663 73.875515 0 0';
86+
}
87+
8488
/* For saving as kml */
8589
function download_file(source, name, mime_type) {
8690
// Adapted from https://stackoverflow.com/a/35251739/4355695

0 commit comments

Comments
 (0)