-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (102 loc) · 6.12 KB
/
index.html
File metadata and controls
104 lines (102 loc) · 6.12 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<!--
Copyright (C) 2021 Stephen Gadd - All Rights Reserved
Released under CC-BY 4.0 International Licence
For details see https://github.com/docuracy/Locolligo/blob/main/LICENSE.md
-->
<head>
<meta charset="UTF-8">
<title>Locolligo: Historical Geodata Curator</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<script src="./js/jquery-3.6.0.min.js"></script>
<script src="./js/jquery-ui.min.js"></script>
<script src="./js/jsonata.min.js">// From https://github.com/jsonata-js/jsonata</script>
<script src="./js/papaparse.min.js">// From https://github.com/mholt/PapaParse</script>
<script src="./js/json-formatter.umd.min.js">// From https://github.com/mohsen1/json-formatter-js</script>
<script src="./js/uuidv4.min.js">// From https://github.com/uuidjs/uuid</script>
<script src="./js/proj4.js">// From https://github.com/proj4js/proj4js</script>
<script src="./js/fxparser.min.js">// https://github.com/NaturalIntelligence/fast-xml-parser</script>
<script src="./js/jquery.loadingModal.min.js">// From https://github.com/do-web/jquery-loadingModal</script>
<script src="./js/spatial-select.js">// From https://gist.github.com/inexorabletash/8e1341083cd1009c0bfb6b4637f699d4</script>
<script src="./js/jszip.js">// From https://github.com/gipong/shp2geojson.js</script>
<script src="./js/jszip-utils.js">// From https://github.com/gipong/shp2geojson.js</script>
<script src="./js/shp2geojson-preprocess.js">// From https://github.com/gipong/shp2geojson.js</script>
<script src="./js/shp2geojson-preview-v2.js">// Adapted from https://github.com/gipong/shp2geojson.js to accommodate uploaded files</script>
<script src="./js/polylabel.js">// From https://github.com/mapbox/polylabel</script>
<script src="./js/citation-js-software-formats.min.js" type="text/javascript">// From https://github.com/citation-js</script>
<script src="./js/fuse.js" type="text/javascript">// From https://fusejs.io/</script>
<script src="./js/data-converter.js"></script>
<link rel="stylesheet" href="./css/jquery-ui.min.css">
<link rel="stylesheet" href="./css/jquery-ui.theme.min.css">
<link rel="stylesheet" href="./css/jquery.loadingModal.min.css">
<link rel="stylesheet" href="./css/dc.css">
<link href="./css/maplibre-gl@2.1.7.css" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<style>@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100&display=swap');</style>
<script src="./js/maplibre-gl@2.1.7.js"></script>
<script src="./API-keys.js"></script>
<base target="_blank">
</head>
<body>
<div id="header">
<a class="logo" aria-label="Locolligo" title="About Locolligo: Historical Geodata Curator" href="https://github.com/docuracy/Locolligo/blob/main/README.md">{Lo<span>co:lligo</span>}</a>
</div>
<div id="source" class="json-formatter">
<span id="source_block">
<span class="initial" title="Use the options to Upload, Fetch, or Select an input dataset.">{input}</span>
<table>
<tr>
<td>
<select id="choose_input">
<option selected disabled="true">Choose Input</option>
<option value="upload">Upload</option>
<!-- <option value="fetch">Fetch from URL</option> Deprecated due to CORS issues and unstable Google Sheet specifications -->
<option value="sample">Try Example</option>
</select>
</td>
<td>
<div id="inputs">
<input type="file" id="file_source" name="file_source" title="Delimited text filenames must end with .csv or .tsv">
<input type="text" id="datafile_url" title="Delimited text filenames must end with .csv or .tsv" placeholder="Datafile URL (JSON/CSV/TSV/XML/KML)"/><button id="fetch">Fetch</button>
<select name="examples" id="examples"><option selected disabled="true">Select Example Dataset</option></select>
</div>
</td>
</tr>
</table>
<span class="bg-text">xLPF LPF TSV GeoJSON JSON XML CSV</span>
</span>
</div>
<div class="arrow"><div class="arrow__body"></div></div>
<div id="output" class="json-formatter"><span class="initial" title="After choosing an input dataset, you may adjust the conversion type. Conversions are not yet configurable.">{output}</span><span class="bg-text">Extended Linked Places Format (xLPF)</span></div>
<div id="footer">Copyright © 2021 Stephen Gadd - All Rights Reserved<br/>Released under <a href="https://github.com/docuracy/Locolligo/blob/main/LICENSE.md">CC-BY 4.0 International Licence</a></div>
<div id="modal" title="JSONata Expression"><p>Paste unescaped JSONata expression here: converted code will be copied to the clipboard and temporarily assigned to the selected conversion type.</p><p>Afterwards, download and replace your mappings.json file to make the assigment permanent.</p><textarea id="JSONata_area" rows="5" cols="67"></textarea><div id="datafields"></div></div>
<div id="map"></div>
<div id="darkroom">
<div id="conversions">
<button id="assign" onclick="assign();" title="Assign CSV columns to Linked Places Format properties.">Assign CSV Columns</button>
</div>
<div id="layerSelector" class="expandingButton">
<span class="fence"></span>
<div class="layerGroup"></div>
<div class="layerGroup"></div>
</div>
<div id="geocodeWrapper" class="expandingButton">
<input id="geocode" class="maplibregl-ctrl" title="First set the search bounds by zooming and panning map, then begin typing." placeholder="Find within map bounds" type="find" />
<div id="geoResults"></div>
</div>
<div id="datastore" title="Local Geodata Library">
<input type="radio" id="newDatastore" name="datastore" value="new" checked>
<input id="newDatastoreName" title="Enter a distinctive name for this new datastore." placeholder="New dataset name" />
<br/>
</div>
<select name="typeLibrary" id="typeLibrary"><option selected disabled="true">Select Type Library</option></select>
</div>
<script type="module">
import OsGridRef from './js/geodesy/osgridref.js'; // From https://www.movable-type.co.uk/scripts/latlong-os-gridref.html
window.OsGridRef = OsGridRef;
import { LatLon } from './js/geodesy/osgridref.js';
window.LatLon = LatLon;
</script>
</body>
</html>