-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.html
262 lines (242 loc) · 11 KB
/
editor.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/editor.css">
<script src="/index.js"></script>
<script src="/editor.js"></script>
<script src="/pano-size-blacklist.js"></script>
</head>
<body>
<div id="main-menu">
<button id="new-map">New map</button>
<menu id="maps-list"></menu>
</div>
<div id="editor" hidden>
<div id="map"> </div>
<div id="pano">
<div id="guides" hidden>
<!--
At any fixed zoom level, the vertical FoV is fixed, not
depending on the div height at all. The horizontal FoV
is then directly tied to the aspect ratio of the div.
So vertically we've been freed to be able to think
about the rule of thirds, while horizontally there
remains the more important matter of showing what's
even visible at narrower aspect ratios.
-->
<div class="guide-normal guide-horizontal upper-3rd"></div>
<div class="guide-normal guide-horizontal lower-3rd"></div>
<!-- 10:7 is the aspect ratio from the default editor. -->
<div class="guide-normal guide-vertical _10-7-left"></div>
<div class="guide-normal guide-vertical _10-7-right"></div>
<div class="guide-normal guide-vertical _4-3-left"></div>
<div class="guide-normal guide-vertical _4-3-right"></div>
<div class="guide-diff guide-horizontal upper-3rd"></div>
<div class="guide-diff guide-horizontal lower-3rd"></div>
<div class="guide-diff guide-vertical _10-7-left"></div>
<div class="guide-diff guide-vertical _10-7-right"></div>
<div class="guide-diff guide-vertical _4-3-left"></div>
<div class="guide-diff guide-vertical _4-3-right"></div>
<div class="reticle reticle-outer reticle-horizontal"></div>
<div class="reticle reticle-outer reticle-vertical"></div>
<div class="reticle reticle-inner reticle-horizontal"></div>
<div class="reticle reticle-inner reticle-vertical"></div>
</div>
</div>
<div id="right">
<div id="right-map">
<div>
<span> Location count: </span>
<span id="count"> 0 </span>
<span>
(<span id="changes">no changes</span> since last save)
</span>
</div>
<div>
<button id="open-import-modal"> Import </button>
</div>
<div>
<button id="open-targets-modal"> View/edit targets </button>
</div>
<div>
<button id="save-map"> Save map </button>
</div>
<div>
<button id="save-upload-map"> Save map + Upload </button>
</div>
<div id="save-status">
<span class="placeholder-text">Save status</span>
</div>
<div>
<button id="back-up-to-file"> Back up map data to a file </button>
</div>
</div>
<div id="right-location">
<div>
<label for="time-machine-temp"> Time machine: </label>
<select id="time-machine-temp" disabled></select>
</div>
<div>
<div>
<label for="panoid"> Panorama ID: </label>
</div>
<div>
<input id="panoid" size="22">
</div>
<div>
<input id="lock-panoid" type="checkbox">
<label for="lock-panoid"> Lock Pano ID </label>
</div>
</div>
<div>
<div>
<label> Position metadata for active pano: </label>
</div>
<div>
<input type="number" id="sv-lat" readonly>
<input type="number" id="sv-lng" readonly>
</div>
</div>
<div>
<input id="pos-override" type="checkbox">
<label for="pos-override"> Override pano-provided position </span>
</div>
<div>
<div>
<label> Position (defaults to stored value): </label>
</div>
<div>
<input type="number" id="set-lat" step="any">
<input type="number" id="set-lng" step="any">
<button id="select-override" disabled> ⌖ </button>
</div>
</div>
<div>
<label> Pano dimensions: </label>
<input type="text" id="pano-size" size="12" readonly>
</div>
<div>
<button id="save-loc" disabled> Save location </button>
<button id="del-loc" disabled> Delete location </button>
</div>
</div>
</div>
<dialog id="import-modal">
<h1> Map import </h1>
<div>
<label for="import-source-gg"> GeoGuessr map ID (or paste link): </label>
<input type="text" id="import-source-gg" size="24">
</div>
<div>
<input type="checkbox" id="source-as-target">
<label for="source-as-target">Add this map as an upload target?</label>
</div>
<div>
<button id="gg-import-execute">Import</button>
<button class="modal-cancel">Cancel</button>
</div>
</dialog>
<dialog id="targets-modal">
<div>
<button class="modal-cancel">🗙</button>
</div>
<h1> Upload targets </h1>
</dialog>
<dialog id="pos-override-modal">
<div id="override-popup-map" class="override-map-layer"> </div>
<div id="override-popup-undermap" class="override-map-layer"> </div>
<button class="modal-cancel"> Cancel and exit </button>
<div id="override-modal-mixing-controls">
<button id="override-popup-init-underlay"> Enable and align underlay </button>
<button id = "override-popup-swap"> Swap layer order </button>
<input id="override-popup-fg-slider" type="range" min=0 max=1 step="any" disabled>
</div>
</dialog>
</div>
<template id="target-template">
<div class="target-div">
<h2> Target </h2>
<div>
<div>
<label class="label-target-map-id"> GeoGuessr map ID: </label>
</div>
<div>
<input class="target-map-id" size="24">
</div>
</div>
<div>
<div>
<label class="label-target-name"> Map name: </label>
</div>
<div>
<input class="target-name" size="40">
</div>
</div>
<div>
<div>
<label class="label-target-description"> Map description: </label>
</div>
<div>
<textarea class="target-description" cols="50" rows="8"></textarea>
</div>
</div>
<div>
<div style="display:inline-block">
<div>
<label class="label-target-regions"> Map regions: </label>
</div>
<div>
<textarea class="target-regions"></textarea>
</div>
</div>
<div style="display:inline-block">
<div>
<label class="label-target-avatar"> Map avatar: </label>
</div>
<div>
<textarea class="target-avatar"></textarea>
</div>
</div>
</div>
<div>
<input class="target-published" type="checkbox">
<label class="label-target-published"> Visible to others? </label>
<input class="target-highlighted" type="checkbox">
<label class="label-target-highlighted"> Highlight? </label>
</div>
</div>
</template>
<template id="map-options-control-stash">
<div class="map-control">
<div class="map-control-mimic"> Options </div>
<div id="map-options-popup" class="map-control-hover" style="display:none">
<div>
<input type="checkbox" id="labels-in-top-layer" checked>
<label for="labels-in-top-layer"> Draw labels in a separate layer above StreetViewCoverageLayer </label>
</div>
</div>
</div>
</template>
<template id="pano-guide-toggle-control-stash">
<div>
<button class="pano-control"> Toggle guides </button>
</div>
</template>
<template id="pano-blocked-submodal-stash">
<div id="pano-blocked-submodal" hidden>
<div>
<div> The pano found has been blocked because panos with these dimensions originate overwhelmingly from low-quality cameras or settings. </div>
<div id="pano-blocked-shame-line"></div>
<button> Add to map and open anyways </button>
</div>
</div>
</template>
<template id="status-ok-span-template">
<span class="success"> [OK] </span>
</template>
<template id="status-fail-span-template">
<span class="failure"> [FAILED] </span>
</template>
</body>
</html>