-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (118 loc) · 5.39 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script type="text/javascript" src="https://www.googletagmanager.com/gtag/js?id=UA-126200443-1" async></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-126200443-1');
</script>
<title>gmaps-overlay-tool</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<link rel="stylesheet" href="static/tool.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div id="modal-edit-element" class="hidden">
<div id="modal">
<header>
<h3>Element Attributes</h3>
<button type="button" class="action" id="modal-close" onclick="CloseModal()"><i class="close"></i></button>
</header>
<form id="element-form" onsubmit="event.preventDefault()"></form>
</div>
</div>
<div id="map-control">
<div class="exports">
<button type="button" onclick="ExportGeoJSON()"><i class="download"></i> GeoJSON</button>
<button type="button" onclick="ExportCustom()"><i class="download"></i> Custom</button>
</div>
<h3 class="title-tool">
Overlay:
<button type="button" id="toggleOverlayTool" target="overlay-tool">Hide</button>
</h3>
<div id="overlay-tool" class="visible">
<form id="imageForm" onsubmit="event.preventDefault()">
<h3>Image</h3>
<fieldset>
<legend for="imageURL">
<span>URL</span>
<button type="button" class="icon" onclick="Copy('imageURL')"><i class="copy"></i></button>
<button type="button" class="icon" onclick="RemoveOverlay()"><i class="delete"></i></button>
</legend>
<input type="text" name="imageURL" id="imageURL" required placeholder="Set url image here..." value=""
autocomplete="off" />
</fieldset>
<fieldset>
<legend for="imageOpacity">
<span class="no-actions">Opacity</span>
</legend>
<input type="range" name="imageOpacity" id="imageOpacity" required min="0" step="0.1" max="1" value="" />
<span id="imageOpacityValue"></span>
</fieldset>
</form>
<form id="boundsForm" onsubmit="event.preventDefault()">
<h3>Bounding Box</h3>
<fieldset>
<legend for="jbbox">
<span>Bounds (JSON Format)</span>
<button type="button" class="icon" onclick="Copy('jbbox')"><i class="copy"></i></button>
</legend>
<input type="text" name="jbbox" id="jbbox" placeholder="Set bbox here..." value="" autocomplete="off" />
</fieldset>
<fieldset>
<legend for="nbbox">
<span>Bounds (Number Format)</span>
<button type="button" class="icon" onclick="Copy('nbbox')"><i class="copy"></i></button>
</legend>
<input type="text" name="nbbox" id="nbbox" placeholder="Set bbox here..." value="" autocomplete="off" />
</fieldset>
<fieldset>
<legend for="bbox">
<span>Bounds (GeoJSON Polygon)</span>
<button type="button" class="icon" onclick="Copy('bbox')"><i class="copy"></i></button>
</legend>
<input type="text" name="bbox" id="bbox" readonly autocomplete="off" />
</fieldset>
</form>
<form id="rotationForm" onsubmit="event.preventDefault()">
<h3>Rotation</h3>
<fieldset>
<legend for="rate">
<span>Rate</span>
<button type="button" class="icon" onclick="AddRateRotation(false)"><i class="remove"></i></button>
<button type="button" class="icon" onclick="AddRateRotation(true)"><i class="add"></i></button>
</legend>
<input type="number" name="rate" id="rate" min="0" max="360" step="0.5" value="0.5" />
</fieldset>
<fieldset>
<legend for="rotation">
<span>Rotation</span>
<button type="button" class="icon" onclick="Copy('rotation')"><i class="copy"></i></button>
<button type="button" class="icon" onclick="AddRotation(false)"><i class="rotate-left"></i></button>
<button type="button" class="icon" onclick="AddRotation(true)"><i class="rotate-right"></i></button>
</legend>
<input type="number" name="rotation" id="rotation" min="-360" max="360" step="0.001" value="" required />
</fieldset>
</form>
</div>
<h3 class="title-tool">
Elements:
<button type="button" id="toggleElementsTool" target="elements-tool">Hide</button>
</h3>
<div id="elements-tool" class="visible">
</div>
</div>
<div id="map"></div>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=drawing"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/eligrey/FileSaver.js/5ed507ef8aa53d8ecfea96d96bc7214cd2476fd2/FileSaver.min.js"></script>
<script type="text/javascript" src="lib/data.js"></script>
<script type="text/javascript" src="lib/overlay-tool.js"></script>
<script type="text/javascript" src="lib/map.js"></script>
<script type="text/javascript" src="lib/ui.js"></script>
<script type="text/javascript" src="lib/modal.js"></script>
</body>
</html>