@panoramax/web-viewer 3.2.0 → 3.2.1-develop-d651cb00
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -1
- package/build/index.css +2 -2
- package/build/index.css.map +1 -1
- package/build/index.js +6 -6
- package/build/index.js.map +1 -1
- package/docs/02_Usage.md +220 -297
- package/package.json +1 -1
- package/src/Viewer.js +4 -0
- package/src/components/CoreView.js +1 -1
- package/src/translations/da.json +176 -0
- package/src/translations/de.json +1 -1
- package/src/translations/en.json +7 -7
- package/src/translations/eo.json +171 -1
- package/src/translations/es.json +1 -1
- package/src/translations/fr.json +3 -3
- package/src/translations/it.json +176 -0
- package/src/translations/pl.json +169 -0
- package/src/translations/zh_Hant.json +4 -4
- package/src/utils/API.js +2 -2
- package/src/utils/I18n.js +13 -4
- package/src/utils/Utils.js +3 -0
- package/src/utils/Widgets.js +2 -0
- package/src/viewer/Widgets.css +2 -0
- package/tests/utils/API.test.js +1 -1
package/docs/02_Usage.md
CHANGED
|
@@ -7,13 +7,7 @@
|
|
|
7
7
|
* [Photo][3]
|
|
8
8
|
* [Editor][4]
|
|
9
9
|
* [StandaloneMap][5]
|
|
10
|
-
* [
|
|
11
|
-
* [getGrade][7]
|
|
12
|
-
* [getCookie][8]
|
|
13
|
-
* [getUserAccount][9]
|
|
14
|
-
* [showGrade][10]
|
|
15
|
-
* [showQualityScore][11]
|
|
16
|
-
* [Viewer][12]
|
|
10
|
+
* [Viewer][6]
|
|
17
11
|
|
|
18
12
|
## CoreView
|
|
19
13
|
|
|
@@ -25,25 +19,25 @@ It is used to prepare API, internationalization, options checks... for Viewer, S
|
|
|
25
19
|
|
|
26
20
|
### Parameters
|
|
27
21
|
|
|
28
|
-
* `container` **([string][
|
|
29
|
-
* `endpoint` **[string][
|
|
30
|
-
* `options` **[object][
|
|
22
|
+
* `container` **([string][7] | [Element][8])** The DOM element to create viewer into
|
|
23
|
+
* `endpoint` **[string][7]** URL to API to use (must be a [STAC API][9])
|
|
24
|
+
* `options` **[object][10]?** View options. (optional, default `{}`)
|
|
31
25
|
|
|
32
|
-
* `options.selectedSequence` **[string][
|
|
33
|
-
* `options.selectedPicture` **[string][
|
|
34
|
-
* `options.fetchOptions` **[object][
|
|
35
|
-
* `options.users` **([string][
|
|
36
|
-
* `options.style` **([string][
|
|
26
|
+
* `options.selectedSequence` **[string][7]?** The ID of sequence to highlight on load (defaults to none)
|
|
27
|
+
* `options.selectedPicture` **[string][7]?** The ID of picture to highlight on load (defaults to none)
|
|
28
|
+
* `options.fetchOptions` **[object][10]** Set custom options for fetch calls made against API ([same syntax as fetch options parameter][11]) (optional, default `null`)
|
|
29
|
+
* `options.users` **([string][7] | [Array][12]<[string][7]>)?** List of user IDs to default use for display. Defaults to all users.
|
|
30
|
+
* `options.style` **([string][7] | [object][10])?** The map's MapLibre style. This can be an a JSON object conforming to the schema described in the [MapLibre Style Specification][13], or a URL string pointing to one. Defaults to OSMFR vector tiles.
|
|
37
31
|
|
|
38
32
|
### Properties
|
|
39
33
|
|
|
40
|
-
* `_t` **[object][
|
|
41
|
-
* `_selectedSeqId` **[string][
|
|
42
|
-
* `_selectedPicId` **[string][
|
|
34
|
+
* `_t` **[object][10]** The translations labels
|
|
35
|
+
* `_selectedSeqId` **[string][7]** The selected sequence ID
|
|
36
|
+
* `_selectedPicId` **[string][7]** The selected picture ID
|
|
43
37
|
* `_api` **API** The API handler
|
|
44
38
|
* `_loader` **Loader** The initial loader message
|
|
45
|
-
* `_options` **[object][
|
|
46
|
-
* `container` **[Element][
|
|
39
|
+
* `_options` **[object][10]** The stored options
|
|
40
|
+
* `container` **[Element][8]** The DOM container
|
|
47
41
|
|
|
48
42
|
### getClassName
|
|
49
43
|
|
|
@@ -62,13 +56,13 @@ This is useful for Single Page Applications (SPA), to remove various event liste
|
|
|
62
56
|
|
|
63
57
|
Is the view running in a small container (small embed or smartphone)
|
|
64
58
|
|
|
65
|
-
Returns **[boolean][
|
|
59
|
+
Returns **[boolean][14]** True if container is small
|
|
66
60
|
|
|
67
61
|
### isHeightSmall
|
|
68
62
|
|
|
69
63
|
Is the view running in a small-height container (small embed or smartphone)
|
|
70
64
|
|
|
71
|
-
Returns **[boolean][
|
|
65
|
+
Returns **[boolean][14]** True if container height is small
|
|
72
66
|
|
|
73
67
|
### select
|
|
74
68
|
|
|
@@ -77,24 +71,24 @@ Calling the method without parameters unselects.
|
|
|
77
71
|
|
|
78
72
|
#### Parameters
|
|
79
73
|
|
|
80
|
-
* `seqId` **[string][
|
|
81
|
-
* `picId` **[string][
|
|
82
|
-
* `force` **[boolean][
|
|
74
|
+
* `seqId` **[string][7]?** The sequence UUID (optional, default `null`)
|
|
75
|
+
* `picId` **[string][7]?** The picture UUID (optional, default `null`)
|
|
76
|
+
* `force` **[boolean][14]** Force select even if already selected (optional, default `false`)
|
|
83
77
|
|
|
84
78
|
### select
|
|
85
79
|
|
|
86
80
|
Event for sequence/picture selection
|
|
87
81
|
|
|
88
|
-
Type: [object][
|
|
82
|
+
Type: [object][10]
|
|
89
83
|
|
|
90
84
|
#### Properties
|
|
91
85
|
|
|
92
|
-
* `detail` **[object][
|
|
86
|
+
* `detail` **[object][10]** Event information
|
|
93
87
|
|
|
94
|
-
* `detail.seqId` **[string][
|
|
95
|
-
* `detail.picId` **[string][
|
|
96
|
-
* `detail.prevSeqId` **[string][
|
|
97
|
-
* `detail.prevPicId` **[string][
|
|
88
|
+
* `detail.seqId` **[string][7]** The selected sequence ID
|
|
89
|
+
* `detail.picId` **[string][7]** The selected picture ID (or null if not a precise picture clicked)
|
|
90
|
+
* `detail.prevSeqId` **[string][7]?** The previously selected sequence ID (or null if none)
|
|
91
|
+
* `detail.prevPicId` **[string][7]?** The previously selected picture ID (or null if none)
|
|
98
92
|
|
|
99
93
|
### ready
|
|
100
94
|
|
|
@@ -104,174 +98,174 @@ Event for viewer being ready to use (API loaded)
|
|
|
104
98
|
|
|
105
99
|
Event for viewer failing to initially load
|
|
106
100
|
|
|
107
|
-
Type: [object][
|
|
101
|
+
Type: [object][10]
|
|
108
102
|
|
|
109
103
|
#### Properties
|
|
110
104
|
|
|
111
|
-
* `detail` **[object][
|
|
105
|
+
* `detail` **[object][10]** Event information
|
|
112
106
|
|
|
113
|
-
* `detail.error` **[string][
|
|
107
|
+
* `detail.error` **[string][7]** The user-friendly error message to display
|
|
114
108
|
|
|
115
109
|
### map:background-changed
|
|
116
110
|
|
|
117
111
|
Event for map background changes
|
|
118
112
|
|
|
119
|
-
Type: [object][
|
|
113
|
+
Type: [object][10]
|
|
120
114
|
|
|
121
115
|
#### Properties
|
|
122
116
|
|
|
123
|
-
* `detail` **[object][
|
|
117
|
+
* `detail` **[object][10]** Event information
|
|
124
118
|
|
|
125
|
-
* `detail.background` **[string][
|
|
119
|
+
* `detail.background` **[string][7]?** The new selected background (aerial, streets)
|
|
126
120
|
|
|
127
121
|
### map:users-changed
|
|
128
122
|
|
|
129
123
|
Event for visible users changes
|
|
130
124
|
|
|
131
|
-
Type: [object][
|
|
125
|
+
Type: [object][10]
|
|
132
126
|
|
|
133
127
|
#### Properties
|
|
134
128
|
|
|
135
|
-
* `detail` **[object][
|
|
129
|
+
* `detail` **[object][10]** Event information
|
|
136
130
|
|
|
137
|
-
* `detail.usersIds` **[Array][
|
|
131
|
+
* `detail.usersIds` **[Array][12]<[string][7]>?** The list of newly selected users
|
|
138
132
|
|
|
139
133
|
### map:sequence-hover
|
|
140
134
|
|
|
141
135
|
Event when a sequence on map is hovered (not selected)
|
|
142
136
|
|
|
143
|
-
Type: [object][
|
|
137
|
+
Type: [object][10]
|
|
144
138
|
|
|
145
139
|
#### Properties
|
|
146
140
|
|
|
147
|
-
* `detail` **[object][
|
|
141
|
+
* `detail` **[object][10]** Event information
|
|
148
142
|
|
|
149
|
-
* `detail.seqId` **[string][
|
|
143
|
+
* `detail.seqId` **[string][7]** The hovered sequence ID
|
|
150
144
|
|
|
151
145
|
### map:sequence-click
|
|
152
146
|
|
|
153
147
|
Event when a sequence on map is clicked
|
|
154
148
|
|
|
155
|
-
Type: [object][
|
|
149
|
+
Type: [object][10]
|
|
156
150
|
|
|
157
151
|
#### Properties
|
|
158
152
|
|
|
159
|
-
* `detail` **[object][
|
|
153
|
+
* `detail` **[object][10]** Event information
|
|
160
154
|
|
|
161
|
-
* `detail.seqId` **[string][
|
|
155
|
+
* `detail.seqId` **[string][7]** The clicked sequence ID
|
|
162
156
|
* `detail.coordinates` **maplibregl.LngLat** The coordinates of user click
|
|
163
157
|
|
|
164
158
|
### map:picture-click
|
|
165
159
|
|
|
166
160
|
Event when a picture on map is clicked
|
|
167
161
|
|
|
168
|
-
Type: [object][
|
|
162
|
+
Type: [object][10]
|
|
169
163
|
|
|
170
164
|
#### Properties
|
|
171
165
|
|
|
172
|
-
* `detail` **[object][
|
|
166
|
+
* `detail` **[object][10]** Event information
|
|
173
167
|
|
|
174
|
-
* `detail.picId` **[string][
|
|
175
|
-
* `detail.seqId` **[string][
|
|
176
|
-
* `detail.feature` **[object][
|
|
168
|
+
* `detail.picId` **[string][7]** The clicked picture ID
|
|
169
|
+
* `detail.seqId` **[string][7]** The clicked picture's sequence ID
|
|
170
|
+
* `detail.feature` **[object][10]** The GeoJSON feature of the picture
|
|
177
171
|
|
|
178
172
|
### psv:picture-loading
|
|
179
173
|
|
|
180
174
|
Event for picture starting to load
|
|
181
175
|
|
|
182
|
-
Type: [object][
|
|
176
|
+
Type: [object][10]
|
|
183
177
|
|
|
184
178
|
#### Properties
|
|
185
179
|
|
|
186
|
-
* `detail` **[object][
|
|
180
|
+
* `detail` **[object][10]** Event information
|
|
187
181
|
|
|
188
|
-
* `detail.picId` **[string][
|
|
189
|
-
* `detail.lon` **[number][
|
|
190
|
-
* `detail.lat` **[number][
|
|
191
|
-
* `detail.x` **[number][
|
|
192
|
-
* `detail.y` **[number][
|
|
193
|
-
* `detail.z` **[number][
|
|
182
|
+
* `detail.picId` **[string][7]** The picture unique identifier
|
|
183
|
+
* `detail.lon` **[number][15]** Longitude (WGS84)
|
|
184
|
+
* `detail.lat` **[number][15]** Latitude (WGS84)
|
|
185
|
+
* `detail.x` **[number][15]** New x position (in degrees, 0-360), corresponds to heading (0° = North, 90° = East, 180° = South, 270° = West)
|
|
186
|
+
* `detail.y` **[number][15]** New y position (in degrees)
|
|
187
|
+
* `detail.z` **[number][15]** New z position (0-100)
|
|
194
188
|
|
|
195
189
|
### psv:picture-preview-started
|
|
196
190
|
|
|
197
191
|
Event for picture preview
|
|
198
192
|
|
|
199
|
-
Type: [object][
|
|
193
|
+
Type: [object][10]
|
|
200
194
|
|
|
201
195
|
#### Properties
|
|
202
196
|
|
|
203
|
-
* `detail` **[object][
|
|
197
|
+
* `detail` **[object][10]** Event information
|
|
204
198
|
|
|
205
|
-
* `detail.picId` **[string][
|
|
206
|
-
* `detail.coordinates` **[Array][
|
|
207
|
-
* `detail.direction` **[number][
|
|
199
|
+
* `detail.picId` **[string][7]** The picture ID
|
|
200
|
+
* `detail.coordinates` **[Array][12]<[number][15]>** \[x,y] coordinates
|
|
201
|
+
* `detail.direction` **[number][15]** The theorical picture orientation
|
|
208
202
|
|
|
209
203
|
### psv:picture-preview-stopped
|
|
210
204
|
|
|
211
205
|
Event for end of picture preview
|
|
212
206
|
|
|
213
|
-
Type: [object][
|
|
207
|
+
Type: [object][10]
|
|
214
208
|
|
|
215
209
|
#### Properties
|
|
216
210
|
|
|
217
|
-
* `detail` **[object][
|
|
211
|
+
* `detail` **[object][10]** Event information
|
|
218
212
|
|
|
219
|
-
* `detail.picId` **[string][
|
|
213
|
+
* `detail.picId` **[string][7]** The picture ID
|
|
220
214
|
|
|
221
215
|
### psv:view-rotated
|
|
222
216
|
|
|
223
217
|
Event for viewer rotation
|
|
224
218
|
|
|
225
|
-
Type: [object][
|
|
219
|
+
Type: [object][10]
|
|
226
220
|
|
|
227
221
|
#### Properties
|
|
228
222
|
|
|
229
|
-
* `detail` **[object][
|
|
223
|
+
* `detail` **[object][10]** Event information
|
|
230
224
|
|
|
231
|
-
* `detail.x` **[number][
|
|
232
|
-
* `detail.y` **[number][
|
|
233
|
-
* `detail.z` **[number][
|
|
225
|
+
* `detail.x` **[number][15]** New x position (in degrees, 0-360), corresponds to heading (0° = North, 90° = East, 180° = South, 270° = West)
|
|
226
|
+
* `detail.y` **[number][15]** New y position (in degrees)
|
|
227
|
+
* `detail.z` **[number][15]** New Z position (between 0 and 100)
|
|
234
228
|
|
|
235
229
|
### psv:picture-loaded
|
|
236
230
|
|
|
237
231
|
Event for picture load (low-resolution image is loaded)
|
|
238
232
|
|
|
239
|
-
Type: [object][
|
|
233
|
+
Type: [object][10]
|
|
240
234
|
|
|
241
235
|
#### Properties
|
|
242
236
|
|
|
243
|
-
* `detail` **[object][
|
|
237
|
+
* `detail` **[object][10]** Event information
|
|
244
238
|
|
|
245
|
-
* `detail.picId` **[string][
|
|
246
|
-
* `detail.lon` **[number][
|
|
247
|
-
* `detail.lat` **[number][
|
|
248
|
-
* `detail.x` **[number][
|
|
249
|
-
* `detail.y` **[number][
|
|
250
|
-
* `detail.z` **[number][
|
|
239
|
+
* `detail.picId` **[string][7]** The picture unique identifier
|
|
240
|
+
* `detail.lon` **[number][15]** Longitude (WGS84)
|
|
241
|
+
* `detail.lat` **[number][15]** Latitude (WGS84)
|
|
242
|
+
* `detail.x` **[number][15]** New x position (in degrees, 0-360), corresponds to heading (0° = North, 90° = East, 180° = South, 270° = West)
|
|
243
|
+
* `detail.y` **[number][15]** New y position (in degrees)
|
|
244
|
+
* `detail.z` **[number][15]** New z position (0-100)
|
|
251
245
|
|
|
252
246
|
### psv:picture-tiles-loaded
|
|
253
247
|
|
|
254
248
|
Event launched when all visible tiles of a picture are loaded
|
|
255
249
|
|
|
256
|
-
Type: [object][
|
|
250
|
+
Type: [object][10]
|
|
257
251
|
|
|
258
252
|
#### Properties
|
|
259
253
|
|
|
260
|
-
* `detail` **[object][
|
|
254
|
+
* `detail` **[object][10]** Event information
|
|
261
255
|
|
|
262
|
-
* `detail.picId` **[string][
|
|
256
|
+
* `detail.picId` **[string][7]** The picture unique identifier
|
|
263
257
|
|
|
264
258
|
### psv:transition-duration-changed
|
|
265
259
|
|
|
266
260
|
Event for transition duration change
|
|
267
261
|
|
|
268
|
-
Type: [object][
|
|
262
|
+
Type: [object][10]
|
|
269
263
|
|
|
270
264
|
#### Properties
|
|
271
265
|
|
|
272
|
-
* `detail` **[object][
|
|
266
|
+
* `detail` **[object][10]** Event information
|
|
273
267
|
|
|
274
|
-
* `detail.duration` **[string][
|
|
268
|
+
* `detail.duration` **[string][7]** New duration (in milliseconds)
|
|
275
269
|
|
|
276
270
|
## Map
|
|
277
271
|
|
|
@@ -279,19 +273,19 @@ Type: [object][16]
|
|
|
279
273
|
|
|
280
274
|
Map is the component showing pictures and sequences geolocation.
|
|
281
275
|
|
|
282
|
-
Note that all functions of [MapLibre GL JS class Map][
|
|
276
|
+
Note that all functions of [MapLibre GL JS class Map][16] are also available.
|
|
283
277
|
|
|
284
278
|
### Parameters
|
|
285
279
|
|
|
286
280
|
* `parent` **[CoreView][1]** The parent view
|
|
287
|
-
* `container` **[Element][
|
|
288
|
-
* `options` **[object][
|
|
281
|
+
* `container` **[Element][8]** The DOM element to create into
|
|
282
|
+
* `options` **[object][10]?** The map options (any of [MapLibre GL settings][17] or any supplementary option defined here) (optional, default `{}`)
|
|
289
283
|
|
|
290
|
-
* `options.raster` **[object][
|
|
291
|
-
* `options.background` **[string][
|
|
292
|
-
* `options.geocoder` **[object][
|
|
284
|
+
* `options.raster` **[object][10]?** The MapLibre raster source for aerial background. This must be a JSON object following [MapLibre raster source definition][18].
|
|
285
|
+
* `options.background` **[string][7]?** Choose default map background to display (streets or aerial, if raster aerial background available). Defaults to street.
|
|
286
|
+
* `options.geocoder` **[object][10]?** Optional geocoder settings
|
|
293
287
|
|
|
294
|
-
* `options.geocoder.engine` **[string][
|
|
288
|
+
* `options.geocoder.engine` **[string][7]?** Set the geocoder engine to use (nominatim, ban)
|
|
295
289
|
|
|
296
290
|
### destroy
|
|
297
291
|
|
|
@@ -305,13 +299,13 @@ Force refresh of vector tiles data
|
|
|
305
299
|
|
|
306
300
|
Check if map offers aerial imagery as well as streets rendering.
|
|
307
301
|
|
|
308
|
-
Returns **[boolean][
|
|
302
|
+
Returns **[boolean][14]** True if aerial imagery is available for display
|
|
309
303
|
|
|
310
304
|
### getBackground
|
|
311
305
|
|
|
312
306
|
Get the currently selected map background
|
|
313
307
|
|
|
314
|
-
Returns **[string][
|
|
308
|
+
Returns **[string][7]** aerial or streets
|
|
315
309
|
|
|
316
310
|
### setBackground
|
|
317
311
|
|
|
@@ -319,13 +313,13 @@ Change the shown background in map.
|
|
|
319
313
|
|
|
320
314
|
#### Parameters
|
|
321
315
|
|
|
322
|
-
* `bg` **[string][
|
|
316
|
+
* `bg` **[string][7]** The new background to display (aerial or streets)
|
|
323
317
|
|
|
324
318
|
### getVisibleUsers
|
|
325
319
|
|
|
326
320
|
Get the currently visible users
|
|
327
321
|
|
|
328
|
-
Returns **[Array][
|
|
322
|
+
Returns **[Array][12]<[string][7]>** List of visible users
|
|
329
323
|
|
|
330
324
|
### setVisibleUsers
|
|
331
325
|
|
|
@@ -333,7 +327,7 @@ Make given user layers visible on map, and hide all others (if any)
|
|
|
333
327
|
|
|
334
328
|
#### Parameters
|
|
335
329
|
|
|
336
|
-
* `visibleIds` **([string][
|
|
330
|
+
* `visibleIds` **([string][7] | [Array][12]<[string][7]>)** The user layers IDs to display (optional, default `[]`)
|
|
337
331
|
|
|
338
332
|
### filterUserLayersContent
|
|
339
333
|
|
|
@@ -341,8 +335,8 @@ Filter the visible data content in all visible map layers
|
|
|
341
335
|
|
|
342
336
|
#### Parameters
|
|
343
337
|
|
|
344
|
-
* `dataType` **[string][
|
|
345
|
-
* `filter` **[object][
|
|
338
|
+
* `dataType` **[string][7]** sequences or pictures
|
|
339
|
+
* `filter` **[object][10]** The MapLibre GL filter rule to apply
|
|
346
340
|
|
|
347
341
|
### displayPictureMarker
|
|
348
342
|
|
|
@@ -350,9 +344,9 @@ Shows on map a picture position and heading.
|
|
|
350
344
|
|
|
351
345
|
#### Parameters
|
|
352
346
|
|
|
353
|
-
* `lon` **[number][
|
|
354
|
-
* `lat` **[number][
|
|
355
|
-
* `heading` **[number][
|
|
347
|
+
* `lon` **[number][15]** The longitude
|
|
348
|
+
* `lat` **[number][15]** The latitude
|
|
349
|
+
* `heading` **[number][15]** The heading
|
|
356
350
|
|
|
357
351
|
### reloadLayersStyles
|
|
358
352
|
|
|
@@ -366,22 +360,22 @@ This is useful after a map theme change.
|
|
|
366
360
|
Photo is the component showing a single picture.
|
|
367
361
|
It uses Photo Sphere Viewer as a basis, and pre-configure dialog with STAC API.
|
|
368
362
|
|
|
369
|
-
Note that all functions of [PhotoSphereViewer Viewer class][
|
|
363
|
+
Note that all functions of [PhotoSphereViewer Viewer class][19] are available as well.
|
|
370
364
|
|
|
371
365
|
### Parameters
|
|
372
366
|
|
|
373
367
|
* `parent` **[CoreView][1]** The parent view
|
|
374
|
-
* `container` **[Element][
|
|
375
|
-
* `options` **[object][
|
|
368
|
+
* `container` **[Element][8]** The DOM element to create into
|
|
369
|
+
* `options` **[object][10]?** The viewer options. Can be any of [Photo Sphere Viewer options][20] (optional, default `{}`)
|
|
376
370
|
|
|
377
|
-
* `options.transitionDuration` **[number][
|
|
378
|
-
* `options.shouldGoFast` **[function][
|
|
371
|
+
* `options.transitionDuration` **[number][15]?** The number of milliseconds the transition animation should be.
|
|
372
|
+
* `options.shouldGoFast` **[function][21]?** Function returning a boolean to indicate if we may skip loading HD images.
|
|
379
373
|
|
|
380
374
|
### getPictureMetadata
|
|
381
375
|
|
|
382
376
|
Access currently shown picture metadata
|
|
383
377
|
|
|
384
|
-
Returns **[object][
|
|
378
|
+
Returns **[object][10]** Picture metadata
|
|
385
379
|
|
|
386
380
|
### goToNextPicture
|
|
387
381
|
|
|
@@ -397,22 +391,22 @@ Displays in viewer a picture near to given coordinates
|
|
|
397
391
|
|
|
398
392
|
#### Parameters
|
|
399
393
|
|
|
400
|
-
* `lat` **[number][
|
|
401
|
-
* `lon` **[number][
|
|
394
|
+
* `lat` **[number][15]** Latitude (WGS84)
|
|
395
|
+
* `lon` **[number][15]** Longitude (WGS84)
|
|
402
396
|
|
|
403
|
-
Returns **[Promise][
|
|
397
|
+
Returns **[Promise][22]** Resolves on picture ID if picture found, otherwise rejects
|
|
404
398
|
|
|
405
399
|
### getXY
|
|
406
400
|
|
|
407
401
|
Get 2D position of sphere currently shown to user
|
|
408
402
|
|
|
409
|
-
Returns **[object][
|
|
403
|
+
Returns **[object][10]** Position in format { x: heading in degrees (0° = North, 90° = East, 180° = South, 270° = West), y: top/bottom position in degrees (-90° = bottom, 0° = front, 90° = top) }
|
|
410
404
|
|
|
411
405
|
### getXYZ
|
|
412
406
|
|
|
413
407
|
Get 3D position of sphere currently shown to user
|
|
414
408
|
|
|
415
|
-
Returns **[object][
|
|
409
|
+
Returns **[object][10]** Position in format { x: heading in degrees (0° = North, 90° = East, 180° = South, 270° = West), y: top/bottom position in degrees (-90° = bottom, 0° = front, 90° = top), z: zoom (0 = wide, 100 = zoomed in) }
|
|
416
410
|
|
|
417
411
|
### getPictureOriginalHeading
|
|
418
412
|
|
|
@@ -438,9 +432,9 @@ Change the shown position in picture
|
|
|
438
432
|
|
|
439
433
|
#### Parameters
|
|
440
434
|
|
|
441
|
-
* `x` **[number][
|
|
442
|
-
* `y` **[number][
|
|
443
|
-
* `z` **[number][
|
|
435
|
+
* `x` **[number][15]** X position (in degrees)
|
|
436
|
+
* `y` **[number][15]** Y position (in degrees)
|
|
437
|
+
* `z` **[number][15]** Z position (0-100)
|
|
444
438
|
|
|
445
439
|
### setHigherContrast
|
|
446
440
|
|
|
@@ -448,13 +442,13 @@ Enable or disable higher contrast on picture
|
|
|
448
442
|
|
|
449
443
|
#### Parameters
|
|
450
444
|
|
|
451
|
-
* `enable` **[boolean][
|
|
445
|
+
* `enable` **[boolean][14]** True to enable higher contrast
|
|
452
446
|
|
|
453
447
|
### getTransitionDuration
|
|
454
448
|
|
|
455
449
|
Get the duration of stay on a picture during a sequence play.
|
|
456
450
|
|
|
457
|
-
Returns **[number][
|
|
451
|
+
Returns **[number][15]** The duration (in milliseconds)
|
|
458
452
|
|
|
459
453
|
### setTransitionDuration
|
|
460
454
|
|
|
@@ -462,7 +456,7 @@ Changes the duration of stay on a picture during a sequence play.
|
|
|
462
456
|
|
|
463
457
|
#### Parameters
|
|
464
458
|
|
|
465
|
-
* `value` **[number][
|
|
459
|
+
* `value` **[number][15]** The new duration (in milliseconds, between 100 and 3000)
|
|
466
460
|
|
|
467
461
|
### showErrorOverlay
|
|
468
462
|
|
|
@@ -470,9 +464,9 @@ Display an error message to user on screen
|
|
|
470
464
|
|
|
471
465
|
#### Parameters
|
|
472
466
|
|
|
473
|
-
* `e` **[object][
|
|
467
|
+
* `e` **[object][10]** The initial error
|
|
474
468
|
* `label` **str** The main error label to display
|
|
475
|
-
* `dissmisable` **[boolean][
|
|
469
|
+
* `dissmisable` **[boolean][14]** Is error dissmisable
|
|
476
470
|
|
|
477
471
|
## Editor
|
|
478
472
|
|
|
@@ -481,20 +475,20 @@ Display an error message to user on screen
|
|
|
481
475
|
Editor allows to focus on a single sequence, and preview what you edits would look like.
|
|
482
476
|
It shows both picture and map.
|
|
483
477
|
|
|
484
|
-
Note that you can use any of the [CoreView][
|
|
478
|
+
Note that you can use any of the [CoreView][23] class functions as well.
|
|
485
479
|
|
|
486
480
|
### Parameters
|
|
487
481
|
|
|
488
|
-
* `container` **([string][
|
|
489
|
-
* `endpoint` **[string][
|
|
490
|
-
* `options` **[object][
|
|
482
|
+
* `container` **([string][7] | [Element][8])** The DOM element to create viewer into
|
|
483
|
+
* `endpoint` **[string][7]** URL to API to use (must be a [STAC API][9])
|
|
484
|
+
* `options` **[object][10]?** View options. (optional, default `{}`)
|
|
491
485
|
|
|
492
|
-
* `options.selectedSequence` **[string][
|
|
493
|
-
* `options.selectedPicture` **[string][
|
|
494
|
-
* `options.fetchOptions` **[object][
|
|
495
|
-
* `options.raster` **[object][
|
|
496
|
-
* `options.background` **[string][
|
|
497
|
-
* `options.style` **([string][
|
|
486
|
+
* `options.selectedSequence` **[string][7]** The ID of sequence to highlight on load. Must be always defined.
|
|
487
|
+
* `options.selectedPicture` **[string][7]?** The ID of picture to highlight on load (defaults to none)
|
|
488
|
+
* `options.fetchOptions` **[object][10]** Set custom options for fetch calls made against API ([same syntax as fetch options parameter][11]) (optional, default `null`)
|
|
489
|
+
* `options.raster` **[object][10]?** The MapLibre raster source for aerial background. This must be a JSON object following [MapLibre raster source definition][18].
|
|
490
|
+
* `options.background` **[string][7]?** Choose default map background to display (streets or aerial, if raster aerial background available). Defaults to street.
|
|
491
|
+
* `options.style` **([string][7] | [object][10])?** The map's MapLibre style. This can be an a JSON object conforming to the schema described in the [MapLibre Style Specification][13], or a URL string pointing to one.
|
|
498
492
|
|
|
499
493
|
### Properties
|
|
500
494
|
|
|
@@ -508,7 +502,7 @@ This doesn't change anything on API-side, it's just a preview.
|
|
|
508
502
|
|
|
509
503
|
#### Parameters
|
|
510
504
|
|
|
511
|
-
* `relHeading` **[number][
|
|
505
|
+
* `relHeading` **[number][15]?** The new relative heading compared to sequence path. In degrees, between -180 and 180 (0 = front, -90 = left, 90 = right). Set to null to remove preview.
|
|
512
506
|
|
|
513
507
|
## StandaloneMap
|
|
514
508
|
|
|
@@ -517,24 +511,24 @@ This doesn't change anything on API-side, it's just a preview.
|
|
|
517
511
|
The standalone map viewer allows to see STAC pictures data as a map.
|
|
518
512
|
It only embeds a map (no 360° pictures viewer) with a minimal picture preview (thumbnail).
|
|
519
513
|
|
|
520
|
-
Note that you can use any of the [CoreView][
|
|
514
|
+
Note that you can use any of the [CoreView][23] class functions as well.
|
|
521
515
|
|
|
522
516
|
### Parameters
|
|
523
517
|
|
|
524
|
-
* `container` **([string][
|
|
525
|
-
* `endpoint` **[string][
|
|
526
|
-
* `options` **[object][
|
|
518
|
+
* `container` **([string][7] | [Element][8])** The DOM element to create viewer into
|
|
519
|
+
* `endpoint` **[string][7]** URL to API to use (must be a [STAC API][9])
|
|
520
|
+
* `options` **[object][10]?** Map options. Various settings can be passed, either the ones defined here, or any of [MapLibre GL settings][17]. (optional, default `{}`)
|
|
527
521
|
|
|
528
|
-
* `options.selectedSequence` **[string][
|
|
529
|
-
* `options.selectedPicture` **[string][
|
|
530
|
-
* `options.fetchOptions` **[object][
|
|
531
|
-
* `options.minZoom` **[number][
|
|
532
|
-
* `options.maxZoom` **[number][
|
|
533
|
-
* `options.style` **([string][
|
|
522
|
+
* `options.selectedSequence` **[string][7]?** The ID of sequence to highlight on load (defaults to none)
|
|
523
|
+
* `options.selectedPicture` **[string][7]?** The ID of picture to highlight on load (defaults to none)
|
|
524
|
+
* `options.fetchOptions` **[object][10]** Set custom options for fetch calls made against API ([same syntax as fetch options parameter][11]) (optional, default `null`)
|
|
525
|
+
* `options.minZoom` **[number][15]** The minimum zoom level of the map (0-24). (optional, default `0`)
|
|
526
|
+
* `options.maxZoom` **[number][15]** The maximum zoom level of the map (0-24). (optional, default `24`)
|
|
527
|
+
* `options.style` **([string][7] | [object][10])?** The map's MapLibre style. This can be an a JSON object conforming to the schema described in the [MapLibre Style Specification][13], or a URL string pointing to one.
|
|
534
528
|
* `options.center` **external:maplibre-gl.LngLatLike** The initial geographical centerpoint of the map. If `center` is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `[0, 0]` Note: MapLibre GL uses longitude, latitude coordinate order (as opposed to latitude, longitude) to match GeoJSON. (optional, default `[0,0]`)
|
|
535
|
-
* `options.zoom` **[number][
|
|
529
|
+
* `options.zoom` **[number][15]** The initial zoom level of the map. If `zoom` is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `0`. (optional, default `0`)
|
|
536
530
|
* `options.bounds` **external:maplibre-gl.LngLatBoundsLike?** The initial bounds of the map. If `bounds` is specified, it overrides `center` and `zoom` constructor options.
|
|
537
|
-
* `options.users` **[Array][
|
|
531
|
+
* `options.users` **[Array][12]<[string][7]>?** The IDs of users whom data should appear on map (defaults to all)
|
|
538
532
|
|
|
539
533
|
### Properties
|
|
540
534
|
|
|
@@ -546,108 +540,49 @@ Ends all form of life in this object.
|
|
|
546
540
|
|
|
547
541
|
This is useful for Single Page Applications (SPA), to remove various event listeners.
|
|
548
542
|
|
|
549
|
-
## autoDetectLocale
|
|
550
|
-
|
|
551
|
-
Find best matching language regarding of list of supported languages and browser accepted languages
|
|
552
|
-
|
|
553
|
-
### Parameters
|
|
554
|
-
|
|
555
|
-
* `supportedTranslations` **[Array][18]\<str>** List of supported languages
|
|
556
|
-
* `fallback` **str** The fallback language
|
|
557
|
-
|
|
558
|
-
Returns **any** The best matching language
|
|
559
|
-
|
|
560
|
-
## getGrade
|
|
561
|
-
|
|
562
|
-
Find the grade associated to an input Quality Score definition.
|
|
563
|
-
|
|
564
|
-
### Parameters
|
|
565
|
-
|
|
566
|
-
* `ranges` **[Array][18]<[number][21]>** The QUALITYSCORE\_\*\_VALUES definition
|
|
567
|
-
* `value` **[number][21]** The picture value
|
|
568
|
-
|
|
569
|
-
Returns **[number][21]** The corresponding grade (1 to 5, or null if missing)
|
|
570
|
-
|
|
571
|
-
## getCookie
|
|
572
|
-
|
|
573
|
-
Get a cookie value
|
|
574
|
-
|
|
575
|
-
### Parameters
|
|
576
|
-
|
|
577
|
-
* `name` **str** The cookie name
|
|
578
|
-
|
|
579
|
-
Returns **str** The cookie value, or null if not found
|
|
580
|
-
|
|
581
|
-
## getUserAccount
|
|
582
|
-
|
|
583
|
-
Checks if an user account exists
|
|
584
|
-
|
|
585
|
-
Returns **[object][16]** Object like {"id", "name"} or null if no authenticated account
|
|
586
|
-
|
|
587
|
-
## showGrade
|
|
588
|
-
|
|
589
|
-
Show a grade in a nice, user-friendly way
|
|
590
|
-
|
|
591
|
-
### Parameters
|
|
592
|
-
|
|
593
|
-
* `grade` **[number][21]** The obtained grade
|
|
594
|
-
* `t`  
|
|
595
|
-
|
|
596
|
-
Returns **[string][13]** Nice to display grade display
|
|
597
|
-
|
|
598
|
-
## showQualityScore
|
|
599
|
-
|
|
600
|
-
Displays a nice QualityScore
|
|
601
|
-
|
|
602
|
-
### Parameters
|
|
603
|
-
|
|
604
|
-
* `grade` **[number][21]** The 1 to 5 grade
|
|
605
|
-
|
|
606
|
-
Returns **[Element][14]** The HTML code for showing the grade
|
|
607
|
-
|
|
608
543
|
## Viewer
|
|
609
544
|
|
|
610
545
|
**Extends CoreView**
|
|
611
546
|
|
|
612
547
|
Viewer is the main component of Panoramax JS library, showing pictures and map.
|
|
613
548
|
|
|
614
|
-
Note that you can use any of the [CoreView][
|
|
549
|
+
Note that you can use any of the [CoreView][23] class functions as well.
|
|
615
550
|
|
|
616
551
|
### Parameters
|
|
617
552
|
|
|
618
|
-
* `container` **([string][
|
|
619
|
-
* `endpoint` **[string][
|
|
620
|
-
* `options` **[object][
|
|
553
|
+
* `container` **([string][7] | [Element][8])** The DOM element to create viewer into
|
|
554
|
+
* `endpoint` **[string][7]** URL to API to use (must be a [STAC API][9])
|
|
555
|
+
* `options` **[object][10]?** Viewer options (optional, default `{}`)
|
|
621
556
|
|
|
622
|
-
* `options.selectedPicture` **[string][
|
|
623
|
-
* `options.position` **[Array][
|
|
624
|
-
* `options.hash` **[boolean][
|
|
625
|
-
* `options.lang` **[string][
|
|
557
|
+
* `options.selectedPicture` **[string][7]?** Initial picture identifier to display
|
|
558
|
+
* `options.position` **[Array][12]<[number][15]>?** Initial position to go to (in \[lat, lon] format)
|
|
559
|
+
* `options.hash` **[boolean][14]** Enable URL hash settings (optional, default `true`)
|
|
560
|
+
* `options.lang` **[string][7]?** Override language to use (defaults to navigator language, or English if translation not available)
|
|
626
561
|
* `options.transition` **int** Duration of stay on a picture during sequence play (excludes loading time) (optional, default `250`)
|
|
627
|
-
* `options.fetchOptions` **[object][
|
|
628
|
-
* `options.users` **([string][
|
|
629
|
-
* `options.picturesNavigation` **[string][
|
|
630
|
-
* `options.map` **([boolean][
|
|
631
|
-
|
|
632
|
-
* `options.map.startWide` **[boolean][
|
|
633
|
-
* `options.map.minZoom` **[number][
|
|
634
|
-
* `options.map.maxZoom` **[number][
|
|
635
|
-
* `options.map.raster` **[object][
|
|
562
|
+
* `options.fetchOptions` **[object][10]** Set custom options for fetch calls made against API ([same syntax as fetch options parameter][11]) (optional, default `null`)
|
|
563
|
+
* `options.users` **([string][7] | [Array][12]<[string][7]>)?** The IDs of users whom data should appear on map (defaults to all). Only works with API having a "user-xyz" or "user-xyz-style" endpoint.
|
|
564
|
+
* `options.picturesNavigation` **[string][7]?** The allowed navigation between pictures ("any": no restriction (default), "seq": only pictures in same sequence, "pic": only selected picture)
|
|
565
|
+
* `options.map` **([boolean][14] | [object][10])** Enable contextual map for locating pictures. Setting to true or passing an object enables the map. Various settings can be passed, either the ones defined here, or any of [MapLibre GL settings][17] (optional, default `false`)
|
|
566
|
+
|
|
567
|
+
* `options.map.startWide` **[boolean][14]?** Show the map as main element at startup (defaults to false, viewer is wider at start)
|
|
568
|
+
* `options.map.minZoom` **[number][15]** The minimum zoom level of the map (0-24). (optional, default `0`)
|
|
569
|
+
* `options.map.maxZoom` **[number][15]** The maximum zoom level of the map (0-24). (optional, default `24`)
|
|
570
|
+
* `options.map.raster` **[object][10]?** The MapLibre raster source for aerial background. This must be a JSON object following [MapLibre raster source definition][18].
|
|
636
571
|
* `options.map.center` **external:maplibre-gl.LngLatLike** The initial geographical centerpoint of the map. If `center` is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `[0, 0]` Note: MapLibre GL uses longitude, latitude coordinate order (as opposed to latitude, longitude) to match GeoJSON. (optional, default `[0,0]`)
|
|
637
|
-
* `options.map.zoom` **[number][
|
|
572
|
+
* `options.map.zoom` **[number][15]** The initial zoom level of the map. If `zoom` is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `0`. (optional, default `0`)
|
|
638
573
|
* `options.map.bounds` **external:maplibre-gl.LngLatBoundsLike?** The initial bounds of the map. If `bounds` is specified, it overrides `center` and `zoom` constructor options.
|
|
639
|
-
* `options.map.geocoder` **[object][
|
|
574
|
+
* `options.map.geocoder` **[object][10]?** Optional geocoder settings
|
|
640
575
|
|
|
641
|
-
* `options.map.geocoder.engine` **[string][
|
|
642
|
-
* `options.map.background` **[string][
|
|
643
|
-
* `options.map.theme` **[string][
|
|
644
|
-
* `options.style` **([string][
|
|
645
|
-
* `options.widgets` **[object][
|
|
576
|
+
* `options.map.geocoder.engine` **[string][7]?** Set the geocoder engine to use (nominatim, ban)
|
|
577
|
+
* `options.map.background` **[string][7]?** Choose default map background to display (streets or aerial, if raster aerial background available). Defaults to street.
|
|
578
|
+
* `options.map.theme` **[string][7]** The colouring scheme to use for pictures and sequences on map (default, age, type) (optional, default `default`)
|
|
579
|
+
* `options.style` **([string][7] | [object][10])?** The map's MapLibre style. This can be an a JSON object conforming to the schema described in the [MapLibre Style Specification][13], or a URL string pointing to one.
|
|
580
|
+
* `options.widgets` **[object][10]?** Settings related to viewer buttons and widgets
|
|
646
581
|
|
|
647
|
-
* `options.widgets.editIdUrl` **[string][
|
|
648
|
-
* `options.widgets.customWidget` **([string][
|
|
649
|
-
* `options.widgets.mapAttribution` **[string][
|
|
650
|
-
* `options.widgets.iframeBaseURL` **[string][
|
|
582
|
+
* `options.widgets.editIdUrl` **[string][7]?** URL to the OpenStreetMap iD editor (defaults to OSM.org iD instance)
|
|
583
|
+
* `options.widgets.customWidget` **([string][7] | [Element][8])?** A user-defined widget to add (will be shown over "Share" button)
|
|
584
|
+
* `options.widgets.mapAttribution` **[string][7]?** Override the default map attribution (read from MapLibre style)
|
|
585
|
+
* `options.widgets.iframeBaseURL` **[string][7]?** Set a custom base URL for the "Share as iframe" menu (defaults to current page)
|
|
651
586
|
|
|
652
587
|
### Properties
|
|
653
588
|
|
|
@@ -670,8 +605,8 @@ Change full-page popup visibility and content
|
|
|
670
605
|
|
|
671
606
|
#### Parameters
|
|
672
607
|
|
|
673
|
-
* `visible` **[boolean][
|
|
674
|
-
* `content` **([string][
|
|
608
|
+
* `visible` **[boolean][14]** True to make it appear
|
|
609
|
+
* `content` **([string][7] | [Array][12]<[Element][8]>)?** The new popup content (optional, default `null`)
|
|
675
610
|
|
|
676
611
|
### playSequence
|
|
677
612
|
|
|
@@ -685,7 +620,7 @@ Stops playing current sequence
|
|
|
685
620
|
|
|
686
621
|
Is there any sequence being played right now ?
|
|
687
622
|
|
|
688
|
-
Returns **[boolean][
|
|
623
|
+
Returns **[boolean][14]** True if sequence is playing
|
|
689
624
|
|
|
690
625
|
### toggleSequencePlaying
|
|
691
626
|
|
|
@@ -717,13 +652,13 @@ Moves the view of main component slightly to the bottom.
|
|
|
717
652
|
|
|
718
653
|
Is the map shown as main element instead of viewer (wide map mode) ?
|
|
719
654
|
|
|
720
|
-
Returns **[boolean][
|
|
655
|
+
Returns **[boolean][14]** True if map is wider than viewer
|
|
721
656
|
|
|
722
657
|
### getPicturesNavigation
|
|
723
658
|
|
|
724
659
|
Get current pictures navigation mode.
|
|
725
660
|
|
|
726
|
-
Returns **[string][
|
|
661
|
+
Returns **[string][7]** The picture navigation mode ("any": no restriction, "seq": only pictures in same sequence, "pic": only selected picture)
|
|
727
662
|
|
|
728
663
|
### setPicturesNavigation
|
|
729
664
|
|
|
@@ -731,17 +666,17 @@ Switch the allowed navigation between pictures.
|
|
|
731
666
|
|
|
732
667
|
#### Parameters
|
|
733
668
|
|
|
734
|
-
* `pn` **[string][
|
|
669
|
+
* `pn` **[string][7]** The picture navigation mode ("any": no restriction, "seq": only pictures in same sequence, "pic": only selected picture)
|
|
735
670
|
|
|
736
671
|
### toggleJOSMLive
|
|
737
672
|
|
|
738
|
-
Enable or disable JOSM live editing using [Remote][
|
|
673
|
+
Enable or disable JOSM live editing using [Remote][24]
|
|
739
674
|
|
|
740
675
|
#### Parameters
|
|
741
676
|
|
|
742
|
-
* `enabled` **[boolean][
|
|
677
|
+
* `enabled` **[boolean][14]** Set to true to enable JOSM live
|
|
743
678
|
|
|
744
|
-
Returns **[Promise][
|
|
679
|
+
Returns **[Promise][22]** Resolves on JOSM live being enabled or disabled
|
|
745
680
|
|
|
746
681
|
### setFocus
|
|
747
682
|
|
|
@@ -749,8 +684,8 @@ Change the viewer focus (either on picture or map)
|
|
|
749
684
|
|
|
750
685
|
#### Parameters
|
|
751
686
|
|
|
752
|
-
* `focus` **[string][
|
|
753
|
-
* `skipEvent` **[boolean][
|
|
687
|
+
* `focus` **[string][7]** The object to focus on (map, pic)
|
|
688
|
+
* `skipEvent` **[boolean][14]** True to not send focus-changed event (optional, default `false`)
|
|
754
689
|
|
|
755
690
|
### toggleFocus
|
|
756
691
|
|
|
@@ -762,7 +697,7 @@ Change the visibility of reduced component (picture or map)
|
|
|
762
697
|
|
|
763
698
|
#### Parameters
|
|
764
699
|
|
|
765
|
-
* `visible` **[boolean][
|
|
700
|
+
* `visible` **[boolean][14]** True to make reduced component visible
|
|
766
701
|
|
|
767
702
|
### toggleUnfocusedVisible
|
|
768
703
|
|
|
@@ -774,15 +709,15 @@ Change the map filters
|
|
|
774
709
|
|
|
775
710
|
#### Parameters
|
|
776
711
|
|
|
777
|
-
* `filters` **[object][
|
|
712
|
+
* `filters` **[object][10]** Filtering values
|
|
778
713
|
|
|
779
|
-
* `filters.minDate` **[string][
|
|
780
|
-
* `filters.maxDate` **[string][
|
|
781
|
-
* `filters.type` **[string][
|
|
782
|
-
* `filters.camera` **[string][
|
|
783
|
-
* `filters.theme` **[string][
|
|
784
|
-
* `filters.qualityscore` **[Array][
|
|
785
|
-
* `skipZoomIn` **[boolean][
|
|
714
|
+
* `filters.minDate` **[string][7]?** Start date for pictures (format YYYY-MM-DD)
|
|
715
|
+
* `filters.maxDate` **[string][7]?** End date for pictures (format YYYY-MM-DD)
|
|
716
|
+
* `filters.type` **[string][7]?** Type of picture to keep (flat, equirectangular)
|
|
717
|
+
* `filters.camera` **[string][7]?** Camera make and model to keep
|
|
718
|
+
* `filters.theme` **[string][7]?** Map theme to use
|
|
719
|
+
* `filters.qualityscore` **[Array][12]<[number][15]>?** QualityScore values, as a list of 1 to 5 grades
|
|
720
|
+
* `skipZoomIn` **[boolean][14]** If true, doesn't force zoom in to map level >= 7 (optional, default `false`)
|
|
786
721
|
|
|
787
722
|
### sequence-playing
|
|
788
723
|
|
|
@@ -796,13 +731,13 @@ Event for sequence stopped playing
|
|
|
796
731
|
|
|
797
732
|
Event for pictures navigation mode change
|
|
798
733
|
|
|
799
|
-
Type: [object][
|
|
734
|
+
Type: [object][10]
|
|
800
735
|
|
|
801
736
|
#### Properties
|
|
802
737
|
|
|
803
|
-
* `detail` **[object][
|
|
738
|
+
* `detail` **[object][10]** Event information
|
|
804
739
|
|
|
805
|
-
* `detail.value` **[string][
|
|
740
|
+
* `detail.value` **[string][7]** New mode (any, pic, seq)
|
|
806
741
|
|
|
807
742
|
### josm-live-enabled
|
|
808
743
|
|
|
@@ -816,30 +751,30 @@ Event for JOSM live disabled
|
|
|
816
751
|
|
|
817
752
|
Event for focus change (either map or picture is shown wide)
|
|
818
753
|
|
|
819
|
-
Type: [object][
|
|
754
|
+
Type: [object][10]
|
|
820
755
|
|
|
821
756
|
#### Properties
|
|
822
757
|
|
|
823
|
-
* `detail` **[object][
|
|
758
|
+
* `detail` **[object][10]** Event information
|
|
824
759
|
|
|
825
|
-
* `detail.focus` **[string][
|
|
760
|
+
* `detail.focus` **[string][7]** Component now focused on (map, pic)
|
|
826
761
|
|
|
827
762
|
### filters-changed
|
|
828
763
|
|
|
829
764
|
Event for filters changes
|
|
830
765
|
|
|
831
|
-
Type: [object][
|
|
766
|
+
Type: [object][10]
|
|
832
767
|
|
|
833
768
|
#### Properties
|
|
834
769
|
|
|
835
|
-
* `detail` **[object][
|
|
770
|
+
* `detail` **[object][10]** Event information
|
|
836
771
|
|
|
837
|
-
* `detail.minDate` **[string][
|
|
838
|
-
* `detail.maxDate` **[string][
|
|
839
|
-
* `detail.type` **[string][
|
|
840
|
-
* `detail.camera` **[string][
|
|
841
|
-
* `detail.theme` **[string][
|
|
842
|
-
* `detail.qualityscore` **[Array][
|
|
772
|
+
* `detail.minDate` **[string][7]?** The minimum date in time range (ISO format)
|
|
773
|
+
* `detail.maxDate` **[string][7]?** The maximum date in time range (ISO format)
|
|
774
|
+
* `detail.type` **[string][7]?** Camera type (equirectangular, flat, null/empty string for both)
|
|
775
|
+
* `detail.camera` **[string][7]?** Camera make and model
|
|
776
|
+
* `detail.theme` **[string][7]?** Map theme
|
|
777
|
+
* `detail.qualityscore` **[Array][12]<[number][15]>?** QualityScore values, as a list of 1 to 5 grades
|
|
843
778
|
|
|
844
779
|
[1]: #coreview
|
|
845
780
|
|
|
@@ -851,52 +786,40 @@ Type: [object][16]
|
|
|
851
786
|
|
|
852
787
|
[5]: #standalonemap
|
|
853
788
|
|
|
854
|
-
[6]: #
|
|
855
|
-
|
|
856
|
-
[7]: #getgrade
|
|
857
|
-
|
|
858
|
-
[8]: #getcookie
|
|
859
|
-
|
|
860
|
-
[9]: #getuseraccount
|
|
861
|
-
|
|
862
|
-
[10]: #showgrade
|
|
863
|
-
|
|
864
|
-
[11]: #showqualityscore
|
|
865
|
-
|
|
866
|
-
[12]: #viewer
|
|
789
|
+
[6]: #viewer
|
|
867
790
|
|
|
868
|
-
[
|
|
791
|
+
[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
|
|
869
792
|
|
|
870
|
-
[
|
|
793
|
+
[8]: https://developer.mozilla.org/docs/Web/API/Element
|
|
871
794
|
|
|
872
|
-
[
|
|
795
|
+
[9]: https://github.com/radiantearth/stac-api-spec/blob/main/overview.md
|
|
873
796
|
|
|
874
|
-
[
|
|
797
|
+
[10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
875
798
|
|
|
876
|
-
[
|
|
799
|
+
[11]: https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters
|
|
877
800
|
|
|
878
|
-
[
|
|
801
|
+
[12]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array
|
|
879
802
|
|
|
880
|
-
[
|
|
803
|
+
[13]: https://maplibre.org/maplibre-gl-js-docs/style-spec/
|
|
881
804
|
|
|
882
|
-
[
|
|
805
|
+
[14]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
|
|
883
806
|
|
|
884
|
-
[
|
|
807
|
+
[15]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
|
|
885
808
|
|
|
886
|
-
[
|
|
809
|
+
[16]: https://maplibre.org/maplibre-gl-js/docs/API/classes/Map/
|
|
887
810
|
|
|
888
|
-
[
|
|
811
|
+
[17]: https://maplibre.org/maplibre-gl-js-docs/api/map/#map-parameters
|
|
889
812
|
|
|
890
|
-
[
|
|
813
|
+
[18]: https://maplibre.org/maplibre-style-spec/sources/#raster
|
|
891
814
|
|
|
892
|
-
[
|
|
815
|
+
[19]: https://photo-sphere-viewer.js.org/api/classes/core.viewer
|
|
893
816
|
|
|
894
|
-
[
|
|
817
|
+
[20]: https://photo-sphere-viewer.js.org/guide/config.html#standard-options
|
|
895
818
|
|
|
896
|
-
[
|
|
819
|
+
[21]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function
|
|
897
820
|
|
|
898
|
-
[
|
|
821
|
+
[22]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise
|
|
899
822
|
|
|
900
|
-
[
|
|
823
|
+
[23]: #CoreView
|
|
901
824
|
|
|
902
|
-
[
|
|
825
|
+
[24]: https://josm.openstreetmap.de/wiki/Help/RemoteControlCommands
|