@indiscale/linkahead-webui-ext-map 0.5.0

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.
Files changed (76) hide show
  1. package/.eslintrc.json +45 -0
  2. package/.gitlab-ci.yml +44 -0
  3. package/CHANGELOG.md +78 -0
  4. package/README.md +97 -0
  5. package/RELEASE_GUIDELINES.md +45 -0
  6. package/__mocks__/fileMock.js +3 -0
  7. package/__mocks__/styleMock.js +1 -0
  8. package/babel.config.js +22 -0
  9. package/cypress/e2e/standalone-map.cy.js +55 -0
  10. package/cypress/support/commands.js +25 -0
  11. package/cypress/support/e2e.js +17 -0
  12. package/cypress.config.js +10 -0
  13. package/dist/2b3e1faf89f94a483539.png +0 -0
  14. package/dist/416d91365b44e4b4f477.png +0 -0
  15. package/dist/8f2c4d11474275fbc161.png +0 -0
  16. package/dist/index.html +1 -0
  17. package/dist/linkahead-webui-ext-map.js +3 -0
  18. package/dist/linkahead-webui-ext-map.js.LICENSE.txt +45 -0
  19. package/dist/linkahead-webui-ext-map.js.map +1 -0
  20. package/iframe/index.html +6 -0
  21. package/indiscale-linkahead-webui-ext-map-0.4.1.tgz +0 -0
  22. package/jest.config.js +23 -0
  23. package/jest.setup.js +2 -0
  24. package/package.json +105 -0
  25. package/public/favicon.ico +0 -0
  26. package/public/index.html +11 -0
  27. package/public/logo192.png +0 -0
  28. package/public/logo512.png +0 -0
  29. package/public/manifest.json +25 -0
  30. package/public/map_tile_caosdb_logo.png +0 -0
  31. package/public/mock.js +41 -0
  32. package/public/robots.txt +3 -0
  33. package/select_query.json +3 -0
  34. package/src/AllMapEntities.tsx +294 -0
  35. package/src/CurrentPageEntities.js +318 -0
  36. package/src/Map.helpers.css +8 -0
  37. package/src/Map.helpers.js +536 -0
  38. package/src/Map.js +288 -0
  39. package/src/Map.test.js +252 -0
  40. package/src/MapConfig.js +75 -0
  41. package/src/__snapshots__/Map.test.js.snap +1725 -0
  42. package/src/components/Coordinates.js +24 -0
  43. package/src/components/ErrorComponent.tsx +2 -0
  44. package/src/components/Graticule.js +27 -0
  45. package/src/components/Loader.module.css +17 -0
  46. package/src/components/Loader.tsx +36 -0
  47. package/src/components/PathDropDown.js +108 -0
  48. package/src/components/SearchControl.js +502 -0
  49. package/src/components/ToggleMapButton.js +194 -0
  50. package/src/components/ViewChangeControl.js +104 -0
  51. package/src/constants/index.js +1 -0
  52. package/src/context/ConfigProvider.test.js +232 -0
  53. package/src/context/ConfigProvider.tsx +189 -0
  54. package/src/context/LoadingProvider.test.js +124 -0
  55. package/src/context/LoadingProvider.tsx +117 -0
  56. package/src/context/PathIdProvider.js +102 -0
  57. package/src/contrib/latlnggraticule/LICENSE +20 -0
  58. package/src/contrib/latlnggraticule/README.md +68 -0
  59. package/src/contrib/latlnggraticule/leaflet.latlng-graticule.js +528 -0
  60. package/src/contrib/simplegraticule/L.Graticule.js +138 -0
  61. package/src/default_config.json +57 -0
  62. package/src/global.d.ts +8 -0
  63. package/src/index.js +6 -0
  64. package/src/index.scss +133 -0
  65. package/src/logging.js +7 -0
  66. package/src/renderHtmlTemplate.test.js +60 -0
  67. package/src/select-search.min.svg +1 -0
  68. package/src/select-search.svg +46 -0
  69. package/src/setupTests.js +5 -0
  70. package/src/utils/GenerateQueryString.js +200 -0
  71. package/src/utils/GenerateQueryString.test.js +304 -0
  72. package/src/utils/index.ts +3 -0
  73. package/standalone.config.js +5 -0
  74. package/static/map_tile_caosdb_logo.png +0 -0
  75. package/tsconfig.json +25 -0
  76. package/webpack.config.js +193 -0
@@ -0,0 +1,1725 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Map basic properties in Standalone mode Hides layers control when in config 1`] = `
4
+ <div>
5
+ <div
6
+ class="map leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom"
7
+ style="position: relative;"
8
+ tabindex="0"
9
+ >
10
+ <div
11
+ class="leaflet-pane leaflet-map-pane"
12
+ style="left: 0px; top: 0px;"
13
+ >
14
+ <div
15
+ class="leaflet-pane leaflet-tile-pane"
16
+ >
17
+ <div
18
+ class="leaflet-layer "
19
+ style="z-index: 1;"
20
+ >
21
+ <div
22
+ class="leaflet-tile-container leaflet-zoom-animated"
23
+ style="z-index: 18; left: 0px; top: 0px;"
24
+ >
25
+ <img
26
+ alt=""
27
+ class="leaflet-tile"
28
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,0,0,39135.75848200963"
29
+ style="width: 256px; height: 256px; left: -256px; top: -256px;"
30
+ />
31
+ <img
32
+ alt=""
33
+ class="leaflet-tile"
34
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,0,39135.75848201024,39135.75848200963"
35
+ style="width: 256px; height: 256px; left: 0px; top: -256px;"
36
+ />
37
+ <img
38
+ alt=""
39
+ class="leaflet-tile"
40
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,-39135.75848200973,0,0"
41
+ style="width: 256px; height: 256px; left: -256px; top: 0px;"
42
+ />
43
+ <img
44
+ alt=""
45
+ class="leaflet-tile"
46
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,-39135.75848200973,39135.75848201024,0"
47
+ style="width: 256px; height: 256px; left: 0px; top: 0px;"
48
+ />
49
+ </div>
50
+ </div>
51
+ </div>
52
+ <div
53
+ class="leaflet-pane leaflet-overlay-pane"
54
+ />
55
+ <div
56
+ class="leaflet-pane leaflet-shadow-pane"
57
+ />
58
+ <div
59
+ class="leaflet-pane leaflet-marker-pane"
60
+ />
61
+ <div
62
+ class="leaflet-pane leaflet-tooltip-pane"
63
+ />
64
+ <div
65
+ class="leaflet-pane leaflet-popup-pane"
66
+ />
67
+ </div>
68
+ <div
69
+ class="leaflet-control-container"
70
+ >
71
+ <div
72
+ class="leaflet-top leaflet-left"
73
+ >
74
+ <div
75
+ class="leaflet-control-zoom leaflet-bar leaflet-control"
76
+ >
77
+ <a
78
+ aria-disabled="false"
79
+ aria-label="Zoom in"
80
+ class="leaflet-control-zoom-in"
81
+ href="#"
82
+ role="button"
83
+ title="Zoom in"
84
+ >
85
+ <span
86
+ aria-hidden="true"
87
+ >
88
+ +
89
+ </span>
90
+ </a>
91
+ <a
92
+ aria-disabled="false"
93
+ aria-label="Zoom out"
94
+ class="leaflet-control-zoom-out"
95
+ href="#"
96
+ role="button"
97
+ title="Zoom out"
98
+ >
99
+ <span
100
+ aria-hidden="true"
101
+ >
102
+
103
+ </span>
104
+ </a>
105
+ </div>
106
+ <div
107
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-select-search-btn"
108
+ title="Select and area and search."
109
+ >
110
+ <img
111
+ class=""
112
+ src="undefined"
113
+ />
114
+ </div>
115
+ </div>
116
+ <div
117
+ class="leaflet-top leaflet-right"
118
+ >
119
+ <div
120
+ aria-haspopup="true"
121
+ class="leaflet-control-layers leaflet-control"
122
+ style="display: none;"
123
+ >
124
+ <a
125
+ class="leaflet-control-layers-toggle"
126
+ href="#"
127
+ role="button"
128
+ title="Layers"
129
+ />
130
+ <section
131
+ class="leaflet-control-layers-list"
132
+ >
133
+ <div
134
+ class="leaflet-control-layers-base"
135
+ />
136
+ <div
137
+ class="leaflet-control-layers-separator"
138
+ style="display: none;"
139
+ />
140
+ <div
141
+ class="leaflet-control-layers-overlays"
142
+ />
143
+ </section>
144
+ </div>
145
+ </div>
146
+ <div
147
+ class="leaflet-bottom leaflet-left"
148
+ >
149
+ <div
150
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-change-view-btn"
151
+ title="Change the view"
152
+ >
153
+ <form
154
+ class="viewMenu d-none"
155
+ >
156
+ <div
157
+ class="caosdb-f-map-view-select"
158
+ title="UNCONFIGURED"
159
+ >
160
+ <input
161
+ class=""
162
+ name="view"
163
+ type="radio"
164
+ value="UNCONFIGURED"
165
+ />
166
+ <label
167
+ class=""
168
+ >
169
+ UNCONFIGURED
170
+ </label>
171
+ </div>
172
+ </form>
173
+ <i
174
+ class="bi-three-dots-vertical"
175
+ />
176
+ </div>
177
+ <div
178
+ class="leaflet-control-coordinates leaflet-control"
179
+ >
180
+ <div
181
+ class="uiElement label"
182
+ >
183
+ <span
184
+ class="labelFirst"
185
+ />
186
+ </div>
187
+ <div
188
+ class="uiElement input uiHidden"
189
+ >
190
+ <span
191
+ class=""
192
+ >
193
+ Lng:
194
+ </span>
195
+ <input
196
+ class="inputX"
197
+ type="text"
198
+ />
199
+ <span
200
+ class=""
201
+ >
202
+ Lat:
203
+ </span>
204
+ <input
205
+ class="inputY"
206
+ type="text"
207
+ />
208
+ </div>
209
+ </div>
210
+ </div>
211
+ <div
212
+ class="leaflet-bottom leaflet-right"
213
+ >
214
+ <select
215
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-path-drop-down"
216
+ title="Show the location of related entities.
217
+ By default ('Same Entity') entities are shown that have
218
+ a geographic location. The other options allow to show
219
+ entities on the map using the location of a related
220
+ entity."
221
+ >
222
+ <option
223
+ value="same"
224
+ >
225
+ Same Entity
226
+ </option>
227
+ <option
228
+ value="PathObject"
229
+ >
230
+ PathObject
231
+ </option>
232
+ </select>
233
+ <div
234
+ class="leaflet-control-attribution leaflet-control"
235
+ >
236
+ <a
237
+ href="https://leafletjs.com"
238
+ title="A JavaScript library for interactive maps"
239
+ >
240
+ Leaflet
241
+ </a>
242
+ </div>
243
+ </div>
244
+ </div>
245
+ <div
246
+ data-testid="currect-page-entities"
247
+ />
248
+ <div
249
+ data-testid="all-map-entities"
250
+ />
251
+ </div>
252
+ </div>
253
+ `;
254
+
255
+ exports[`Map basic properties in Standalone mode Hides path switch when in config 1`] = `
256
+ <div>
257
+ <div
258
+ class="map leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom"
259
+ style="position: relative;"
260
+ tabindex="0"
261
+ >
262
+ <div
263
+ class="leaflet-pane leaflet-map-pane"
264
+ style="left: 0px; top: 0px;"
265
+ >
266
+ <div
267
+ class="leaflet-pane leaflet-tile-pane"
268
+ >
269
+ <div
270
+ class="leaflet-layer "
271
+ style="z-index: 1;"
272
+ >
273
+ <div
274
+ class="leaflet-tile-container leaflet-zoom-animated"
275
+ style="z-index: 18; left: 0px; top: 0px;"
276
+ >
277
+ <img
278
+ alt=""
279
+ class="leaflet-tile"
280
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,0,0,39135.75848200963"
281
+ style="width: 256px; height: 256px; left: -256px; top: -256px;"
282
+ />
283
+ <img
284
+ alt=""
285
+ class="leaflet-tile"
286
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,0,39135.75848201024,39135.75848200963"
287
+ style="width: 256px; height: 256px; left: 0px; top: -256px;"
288
+ />
289
+ <img
290
+ alt=""
291
+ class="leaflet-tile"
292
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,-39135.75848200973,0,0"
293
+ style="width: 256px; height: 256px; left: -256px; top: 0px;"
294
+ />
295
+ <img
296
+ alt=""
297
+ class="leaflet-tile"
298
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,-39135.75848200973,39135.75848201024,0"
299
+ style="width: 256px; height: 256px; left: 0px; top: 0px;"
300
+ />
301
+ </div>
302
+ </div>
303
+ </div>
304
+ <div
305
+ class="leaflet-pane leaflet-overlay-pane"
306
+ />
307
+ <div
308
+ class="leaflet-pane leaflet-shadow-pane"
309
+ />
310
+ <div
311
+ class="leaflet-pane leaflet-marker-pane"
312
+ />
313
+ <div
314
+ class="leaflet-pane leaflet-tooltip-pane"
315
+ />
316
+ <div
317
+ class="leaflet-pane leaflet-popup-pane"
318
+ />
319
+ </div>
320
+ <div
321
+ class="leaflet-control-container"
322
+ >
323
+ <div
324
+ class="leaflet-top leaflet-left"
325
+ >
326
+ <div
327
+ class="leaflet-control-zoom leaflet-bar leaflet-control"
328
+ >
329
+ <a
330
+ aria-disabled="false"
331
+ aria-label="Zoom in"
332
+ class="leaflet-control-zoom-in"
333
+ href="#"
334
+ role="button"
335
+ title="Zoom in"
336
+ >
337
+ <span
338
+ aria-hidden="true"
339
+ >
340
+ +
341
+ </span>
342
+ </a>
343
+ <a
344
+ aria-disabled="false"
345
+ aria-label="Zoom out"
346
+ class="leaflet-control-zoom-out"
347
+ href="#"
348
+ role="button"
349
+ title="Zoom out"
350
+ >
351
+ <span
352
+ aria-hidden="true"
353
+ >
354
+
355
+ </span>
356
+ </a>
357
+ </div>
358
+ <div
359
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-select-search-btn"
360
+ title="Select and area and search."
361
+ >
362
+ <img
363
+ class=""
364
+ src="undefined"
365
+ />
366
+ </div>
367
+ </div>
368
+ <div
369
+ class="leaflet-top leaflet-right"
370
+ >
371
+ <div
372
+ aria-haspopup="true"
373
+ class="leaflet-control-layers leaflet-control"
374
+ style="display: block;"
375
+ >
376
+ <a
377
+ class="leaflet-control-layers-toggle"
378
+ href="#"
379
+ role="button"
380
+ title="Layers"
381
+ />
382
+ <section
383
+ class="leaflet-control-layers-list"
384
+ >
385
+ <div
386
+ class="leaflet-control-layers-base"
387
+ />
388
+ <div
389
+ class="leaflet-control-layers-separator"
390
+ style="display: none;"
391
+ />
392
+ <div
393
+ class="leaflet-control-layers-overlays"
394
+ />
395
+ </section>
396
+ </div>
397
+ </div>
398
+ <div
399
+ class="leaflet-bottom leaflet-left"
400
+ >
401
+ <div
402
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-change-view-btn"
403
+ title="Change the view"
404
+ >
405
+ <form
406
+ class="viewMenu d-none"
407
+ >
408
+ <div
409
+ class="caosdb-f-map-view-select"
410
+ title="UNCONFIGURED"
411
+ >
412
+ <input
413
+ class=""
414
+ name="view"
415
+ type="radio"
416
+ value="UNCONFIGURED"
417
+ />
418
+ <label
419
+ class=""
420
+ >
421
+ UNCONFIGURED
422
+ </label>
423
+ </div>
424
+ </form>
425
+ <i
426
+ class="bi-three-dots-vertical"
427
+ />
428
+ </div>
429
+ <div
430
+ class="leaflet-control-coordinates leaflet-control"
431
+ >
432
+ <div
433
+ class="uiElement label"
434
+ >
435
+ <span
436
+ class="labelFirst"
437
+ />
438
+ </div>
439
+ <div
440
+ class="uiElement input uiHidden"
441
+ >
442
+ <span
443
+ class=""
444
+ >
445
+ Lng:
446
+ </span>
447
+ <input
448
+ class="inputX"
449
+ type="text"
450
+ />
451
+ <span
452
+ class=""
453
+ >
454
+ Lat:
455
+ </span>
456
+ <input
457
+ class="inputY"
458
+ type="text"
459
+ />
460
+ </div>
461
+ </div>
462
+ </div>
463
+ <div
464
+ class="leaflet-bottom leaflet-right"
465
+ >
466
+ <div
467
+ class="leaflet-control-attribution leaflet-control"
468
+ >
469
+ <a
470
+ href="https://leafletjs.com"
471
+ title="A JavaScript library for interactive maps"
472
+ >
473
+ Leaflet
474
+ </a>
475
+ </div>
476
+ </div>
477
+ </div>
478
+ <div
479
+ data-testid="currect-page-entities"
480
+ />
481
+ <div
482
+ data-testid="all-map-entities"
483
+ />
484
+ </div>
485
+ </div>
486
+ `;
487
+
488
+ exports[`Map basic properties in Standalone mode Hides search/query control when in config 1`] = `
489
+ <div>
490
+ <div
491
+ class="map leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom"
492
+ style="position: relative;"
493
+ tabindex="0"
494
+ >
495
+ <div
496
+ class="leaflet-pane leaflet-map-pane"
497
+ style="left: 0px; top: 0px;"
498
+ >
499
+ <div
500
+ class="leaflet-pane leaflet-tile-pane"
501
+ >
502
+ <div
503
+ class="leaflet-layer "
504
+ style="z-index: 1;"
505
+ >
506
+ <div
507
+ class="leaflet-tile-container leaflet-zoom-animated"
508
+ style="z-index: 18; left: 0px; top: 0px;"
509
+ >
510
+ <img
511
+ alt=""
512
+ class="leaflet-tile"
513
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,0,0,39135.75848200963"
514
+ style="width: 256px; height: 256px; left: -256px; top: -256px;"
515
+ />
516
+ <img
517
+ alt=""
518
+ class="leaflet-tile"
519
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,0,39135.75848201024,39135.75848200963"
520
+ style="width: 256px; height: 256px; left: 0px; top: -256px;"
521
+ />
522
+ <img
523
+ alt=""
524
+ class="leaflet-tile"
525
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,-39135.75848200973,0,0"
526
+ style="width: 256px; height: 256px; left: -256px; top: 0px;"
527
+ />
528
+ <img
529
+ alt=""
530
+ class="leaflet-tile"
531
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,-39135.75848200973,39135.75848201024,0"
532
+ style="width: 256px; height: 256px; left: 0px; top: 0px;"
533
+ />
534
+ </div>
535
+ </div>
536
+ </div>
537
+ <div
538
+ class="leaflet-pane leaflet-overlay-pane"
539
+ />
540
+ <div
541
+ class="leaflet-pane leaflet-shadow-pane"
542
+ />
543
+ <div
544
+ class="leaflet-pane leaflet-marker-pane"
545
+ />
546
+ <div
547
+ class="leaflet-pane leaflet-tooltip-pane"
548
+ />
549
+ <div
550
+ class="leaflet-pane leaflet-popup-pane"
551
+ />
552
+ </div>
553
+ <div
554
+ class="leaflet-control-container"
555
+ >
556
+ <div
557
+ class="leaflet-top leaflet-left"
558
+ >
559
+ <div
560
+ class="leaflet-control-zoom leaflet-bar leaflet-control"
561
+ >
562
+ <a
563
+ aria-disabled="false"
564
+ aria-label="Zoom in"
565
+ class="leaflet-control-zoom-in"
566
+ href="#"
567
+ role="button"
568
+ title="Zoom in"
569
+ >
570
+ <span
571
+ aria-hidden="true"
572
+ >
573
+ +
574
+ </span>
575
+ </a>
576
+ <a
577
+ aria-disabled="false"
578
+ aria-label="Zoom out"
579
+ class="leaflet-control-zoom-out"
580
+ href="#"
581
+ role="button"
582
+ title="Zoom out"
583
+ >
584
+ <span
585
+ aria-hidden="true"
586
+ >
587
+
588
+ </span>
589
+ </a>
590
+ </div>
591
+ </div>
592
+ <div
593
+ class="leaflet-top leaflet-right"
594
+ >
595
+ <div
596
+ aria-haspopup="true"
597
+ class="leaflet-control-layers leaflet-control"
598
+ style="display: block;"
599
+ >
600
+ <a
601
+ class="leaflet-control-layers-toggle"
602
+ href="#"
603
+ role="button"
604
+ title="Layers"
605
+ />
606
+ <section
607
+ class="leaflet-control-layers-list"
608
+ >
609
+ <div
610
+ class="leaflet-control-layers-base"
611
+ />
612
+ <div
613
+ class="leaflet-control-layers-separator"
614
+ style="display: none;"
615
+ />
616
+ <div
617
+ class="leaflet-control-layers-overlays"
618
+ />
619
+ </section>
620
+ </div>
621
+ </div>
622
+ <div
623
+ class="leaflet-bottom leaflet-left"
624
+ >
625
+ <div
626
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-change-view-btn"
627
+ title="Change the view"
628
+ >
629
+ <form
630
+ class="viewMenu d-none"
631
+ >
632
+ <div
633
+ class="caosdb-f-map-view-select"
634
+ title="UNCONFIGURED"
635
+ >
636
+ <input
637
+ class=""
638
+ name="view"
639
+ type="radio"
640
+ value="UNCONFIGURED"
641
+ />
642
+ <label
643
+ class=""
644
+ >
645
+ UNCONFIGURED
646
+ </label>
647
+ </div>
648
+ </form>
649
+ <i
650
+ class="bi-three-dots-vertical"
651
+ />
652
+ </div>
653
+ <div
654
+ class="leaflet-control-coordinates leaflet-control"
655
+ >
656
+ <div
657
+ class="uiElement label"
658
+ >
659
+ <span
660
+ class="labelFirst"
661
+ />
662
+ </div>
663
+ <div
664
+ class="uiElement input uiHidden"
665
+ >
666
+ <span
667
+ class=""
668
+ >
669
+ Lng:
670
+ </span>
671
+ <input
672
+ class="inputX"
673
+ type="text"
674
+ />
675
+ <span
676
+ class=""
677
+ >
678
+ Lat:
679
+ </span>
680
+ <input
681
+ class="inputY"
682
+ type="text"
683
+ />
684
+ </div>
685
+ </div>
686
+ </div>
687
+ <div
688
+ class="leaflet-bottom leaflet-right"
689
+ >
690
+ <select
691
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-path-drop-down"
692
+ title="Show the location of related entities.
693
+ By default ('Same Entity') entities are shown that have
694
+ a geographic location. The other options allow to show
695
+ entities on the map using the location of a related
696
+ entity."
697
+ >
698
+ <option
699
+ value="same"
700
+ >
701
+ Same Entity
702
+ </option>
703
+ <option
704
+ value="PathObject"
705
+ >
706
+ PathObject
707
+ </option>
708
+ </select>
709
+ <div
710
+ class="leaflet-control-attribution leaflet-control"
711
+ >
712
+ <a
713
+ href="https://leafletjs.com"
714
+ title="A JavaScript library for interactive maps"
715
+ >
716
+ Leaflet
717
+ </a>
718
+ </div>
719
+ </div>
720
+ </div>
721
+ <div
722
+ data-testid="currect-page-entities"
723
+ />
724
+ <div
725
+ data-testid="all-map-entities"
726
+ />
727
+ </div>
728
+ </div>
729
+ `;
730
+
731
+ exports[`Map basic properties in Standalone mode Shows layers control when in config 1`] = `
732
+ <div>
733
+ <div
734
+ class="map leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom"
735
+ style="position: relative;"
736
+ tabindex="0"
737
+ >
738
+ <div
739
+ class="leaflet-pane leaflet-map-pane"
740
+ style="left: 0px; top: 0px;"
741
+ >
742
+ <div
743
+ class="leaflet-pane leaflet-tile-pane"
744
+ >
745
+ <div
746
+ class="leaflet-layer "
747
+ style="z-index: 1;"
748
+ >
749
+ <div
750
+ class="leaflet-tile-container leaflet-zoom-animated"
751
+ style="z-index: 18; left: 0px; top: 0px;"
752
+ >
753
+ <img
754
+ alt=""
755
+ class="leaflet-tile"
756
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,0,0,39135.75848200963"
757
+ style="width: 256px; height: 256px; left: -256px; top: -256px;"
758
+ />
759
+ <img
760
+ alt=""
761
+ class="leaflet-tile"
762
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,0,39135.75848201024,39135.75848200963"
763
+ style="width: 256px; height: 256px; left: 0px; top: -256px;"
764
+ />
765
+ <img
766
+ alt=""
767
+ class="leaflet-tile"
768
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,-39135.75848200973,0,0"
769
+ style="width: 256px; height: 256px; left: -256px; top: 0px;"
770
+ />
771
+ <img
772
+ alt=""
773
+ class="leaflet-tile"
774
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,-39135.75848200973,39135.75848201024,0"
775
+ style="width: 256px; height: 256px; left: 0px; top: 0px;"
776
+ />
777
+ </div>
778
+ </div>
779
+ </div>
780
+ <div
781
+ class="leaflet-pane leaflet-overlay-pane"
782
+ />
783
+ <div
784
+ class="leaflet-pane leaflet-shadow-pane"
785
+ />
786
+ <div
787
+ class="leaflet-pane leaflet-marker-pane"
788
+ />
789
+ <div
790
+ class="leaflet-pane leaflet-tooltip-pane"
791
+ />
792
+ <div
793
+ class="leaflet-pane leaflet-popup-pane"
794
+ />
795
+ </div>
796
+ <div
797
+ class="leaflet-control-container"
798
+ >
799
+ <div
800
+ class="leaflet-top leaflet-left"
801
+ >
802
+ <div
803
+ class="leaflet-control-zoom leaflet-bar leaflet-control"
804
+ >
805
+ <a
806
+ aria-disabled="false"
807
+ aria-label="Zoom in"
808
+ class="leaflet-control-zoom-in"
809
+ href="#"
810
+ role="button"
811
+ title="Zoom in"
812
+ >
813
+ <span
814
+ aria-hidden="true"
815
+ >
816
+ +
817
+ </span>
818
+ </a>
819
+ <a
820
+ aria-disabled="false"
821
+ aria-label="Zoom out"
822
+ class="leaflet-control-zoom-out"
823
+ href="#"
824
+ role="button"
825
+ title="Zoom out"
826
+ >
827
+ <span
828
+ aria-hidden="true"
829
+ >
830
+
831
+ </span>
832
+ </a>
833
+ </div>
834
+ <div
835
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-select-search-btn"
836
+ title="Select and area and search."
837
+ >
838
+ <img
839
+ class=""
840
+ src="undefined"
841
+ />
842
+ </div>
843
+ </div>
844
+ <div
845
+ class="leaflet-top leaflet-right"
846
+ >
847
+ <div
848
+ aria-haspopup="true"
849
+ class="leaflet-control-layers leaflet-control"
850
+ style="display: block;"
851
+ >
852
+ <a
853
+ class="leaflet-control-layers-toggle"
854
+ href="#"
855
+ role="button"
856
+ title="Layers"
857
+ />
858
+ <section
859
+ class="leaflet-control-layers-list"
860
+ >
861
+ <div
862
+ class="leaflet-control-layers-base"
863
+ />
864
+ <div
865
+ class="leaflet-control-layers-separator"
866
+ style="display: none;"
867
+ />
868
+ <div
869
+ class="leaflet-control-layers-overlays"
870
+ />
871
+ </section>
872
+ </div>
873
+ </div>
874
+ <div
875
+ class="leaflet-bottom leaflet-left"
876
+ >
877
+ <div
878
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-change-view-btn"
879
+ title="Change the view"
880
+ >
881
+ <form
882
+ class="viewMenu d-none"
883
+ >
884
+ <div
885
+ class="caosdb-f-map-view-select"
886
+ title="UNCONFIGURED"
887
+ >
888
+ <input
889
+ class=""
890
+ name="view"
891
+ type="radio"
892
+ value="UNCONFIGURED"
893
+ />
894
+ <label
895
+ class=""
896
+ >
897
+ UNCONFIGURED
898
+ </label>
899
+ </div>
900
+ </form>
901
+ <i
902
+ class="bi-three-dots-vertical"
903
+ />
904
+ </div>
905
+ <div
906
+ class="leaflet-control-coordinates leaflet-control"
907
+ >
908
+ <div
909
+ class="uiElement label"
910
+ >
911
+ <span
912
+ class="labelFirst"
913
+ />
914
+ </div>
915
+ <div
916
+ class="uiElement input uiHidden"
917
+ >
918
+ <span
919
+ class=""
920
+ >
921
+ Lng:
922
+ </span>
923
+ <input
924
+ class="inputX"
925
+ type="text"
926
+ />
927
+ <span
928
+ class=""
929
+ >
930
+ Lat:
931
+ </span>
932
+ <input
933
+ class="inputY"
934
+ type="text"
935
+ />
936
+ </div>
937
+ </div>
938
+ </div>
939
+ <div
940
+ class="leaflet-bottom leaflet-right"
941
+ >
942
+ <select
943
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-path-drop-down"
944
+ title="Show the location of related entities.
945
+ By default ('Same Entity') entities are shown that have
946
+ a geographic location. The other options allow to show
947
+ entities on the map using the location of a related
948
+ entity."
949
+ >
950
+ <option
951
+ value="same"
952
+ >
953
+ Same Entity
954
+ </option>
955
+ <option
956
+ value="PathObject"
957
+ >
958
+ PathObject
959
+ </option>
960
+ </select>
961
+ <div
962
+ class="leaflet-control-attribution leaflet-control"
963
+ >
964
+ <a
965
+ href="https://leafletjs.com"
966
+ title="A JavaScript library for interactive maps"
967
+ >
968
+ Leaflet
969
+ </a>
970
+ </div>
971
+ </div>
972
+ </div>
973
+ <div
974
+ data-testid="currect-page-entities"
975
+ />
976
+ <div
977
+ data-testid="all-map-entities"
978
+ />
979
+ </div>
980
+ </div>
981
+ `;
982
+
983
+ exports[`Map basic properties in Standalone mode Shows path switch when in config 1`] = `
984
+ <div>
985
+ <div
986
+ class="map leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom"
987
+ style="position: relative;"
988
+ tabindex="0"
989
+ >
990
+ <div
991
+ class="leaflet-pane leaflet-map-pane"
992
+ style="left: 0px; top: 0px;"
993
+ >
994
+ <div
995
+ class="leaflet-pane leaflet-tile-pane"
996
+ >
997
+ <div
998
+ class="leaflet-layer "
999
+ style="z-index: 1;"
1000
+ >
1001
+ <div
1002
+ class="leaflet-tile-container leaflet-zoom-animated"
1003
+ style="z-index: 18; left: 0px; top: 0px;"
1004
+ >
1005
+ <img
1006
+ alt=""
1007
+ class="leaflet-tile"
1008
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,0,0,39135.75848200963"
1009
+ style="width: 256px; height: 256px; left: -256px; top: -256px;"
1010
+ />
1011
+ <img
1012
+ alt=""
1013
+ class="leaflet-tile"
1014
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,0,39135.75848201024,39135.75848200963"
1015
+ style="width: 256px; height: 256px; left: 0px; top: -256px;"
1016
+ />
1017
+ <img
1018
+ alt=""
1019
+ class="leaflet-tile"
1020
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,-39135.75848200973,0,0"
1021
+ style="width: 256px; height: 256px; left: -256px; top: 0px;"
1022
+ />
1023
+ <img
1024
+ alt=""
1025
+ class="leaflet-tile"
1026
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,-39135.75848200973,39135.75848201024,0"
1027
+ style="width: 256px; height: 256px; left: 0px; top: 0px;"
1028
+ />
1029
+ </div>
1030
+ </div>
1031
+ </div>
1032
+ <div
1033
+ class="leaflet-pane leaflet-overlay-pane"
1034
+ />
1035
+ <div
1036
+ class="leaflet-pane leaflet-shadow-pane"
1037
+ />
1038
+ <div
1039
+ class="leaflet-pane leaflet-marker-pane"
1040
+ />
1041
+ <div
1042
+ class="leaflet-pane leaflet-tooltip-pane"
1043
+ />
1044
+ <div
1045
+ class="leaflet-pane leaflet-popup-pane"
1046
+ />
1047
+ </div>
1048
+ <div
1049
+ class="leaflet-control-container"
1050
+ >
1051
+ <div
1052
+ class="leaflet-top leaflet-left"
1053
+ >
1054
+ <div
1055
+ class="leaflet-control-zoom leaflet-bar leaflet-control"
1056
+ >
1057
+ <a
1058
+ aria-disabled="false"
1059
+ aria-label="Zoom in"
1060
+ class="leaflet-control-zoom-in"
1061
+ href="#"
1062
+ role="button"
1063
+ title="Zoom in"
1064
+ >
1065
+ <span
1066
+ aria-hidden="true"
1067
+ >
1068
+ +
1069
+ </span>
1070
+ </a>
1071
+ <a
1072
+ aria-disabled="false"
1073
+ aria-label="Zoom out"
1074
+ class="leaflet-control-zoom-out"
1075
+ href="#"
1076
+ role="button"
1077
+ title="Zoom out"
1078
+ >
1079
+ <span
1080
+ aria-hidden="true"
1081
+ >
1082
+
1083
+ </span>
1084
+ </a>
1085
+ </div>
1086
+ <div
1087
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-select-search-btn"
1088
+ title="Select and area and search."
1089
+ >
1090
+ <img
1091
+ class=""
1092
+ src="undefined"
1093
+ />
1094
+ </div>
1095
+ </div>
1096
+ <div
1097
+ class="leaflet-top leaflet-right"
1098
+ >
1099
+ <div
1100
+ aria-haspopup="true"
1101
+ class="leaflet-control-layers leaflet-control"
1102
+ style="display: block;"
1103
+ >
1104
+ <a
1105
+ class="leaflet-control-layers-toggle"
1106
+ href="#"
1107
+ role="button"
1108
+ title="Layers"
1109
+ />
1110
+ <section
1111
+ class="leaflet-control-layers-list"
1112
+ >
1113
+ <div
1114
+ class="leaflet-control-layers-base"
1115
+ />
1116
+ <div
1117
+ class="leaflet-control-layers-separator"
1118
+ style="display: none;"
1119
+ />
1120
+ <div
1121
+ class="leaflet-control-layers-overlays"
1122
+ />
1123
+ </section>
1124
+ </div>
1125
+ </div>
1126
+ <div
1127
+ class="leaflet-bottom leaflet-left"
1128
+ >
1129
+ <div
1130
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-change-view-btn"
1131
+ title="Change the view"
1132
+ >
1133
+ <form
1134
+ class="viewMenu d-none"
1135
+ >
1136
+ <div
1137
+ class="caosdb-f-map-view-select"
1138
+ title="UNCONFIGURED"
1139
+ >
1140
+ <input
1141
+ class=""
1142
+ name="view"
1143
+ type="radio"
1144
+ value="UNCONFIGURED"
1145
+ />
1146
+ <label
1147
+ class=""
1148
+ >
1149
+ UNCONFIGURED
1150
+ </label>
1151
+ </div>
1152
+ </form>
1153
+ <i
1154
+ class="bi-three-dots-vertical"
1155
+ />
1156
+ </div>
1157
+ <div
1158
+ class="leaflet-control-coordinates leaflet-control"
1159
+ >
1160
+ <div
1161
+ class="uiElement label"
1162
+ >
1163
+ <span
1164
+ class="labelFirst"
1165
+ />
1166
+ </div>
1167
+ <div
1168
+ class="uiElement input uiHidden"
1169
+ >
1170
+ <span
1171
+ class=""
1172
+ >
1173
+ Lng:
1174
+ </span>
1175
+ <input
1176
+ class="inputX"
1177
+ type="text"
1178
+ />
1179
+ <span
1180
+ class=""
1181
+ >
1182
+ Lat:
1183
+ </span>
1184
+ <input
1185
+ class="inputY"
1186
+ type="text"
1187
+ />
1188
+ </div>
1189
+ </div>
1190
+ </div>
1191
+ <div
1192
+ class="leaflet-bottom leaflet-right"
1193
+ >
1194
+ <select
1195
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-path-drop-down"
1196
+ title="Show the location of related entities.
1197
+ By default ('Same Entity') entities are shown that have
1198
+ a geographic location. The other options allow to show
1199
+ entities on the map using the location of a related
1200
+ entity."
1201
+ >
1202
+ <option
1203
+ value="same"
1204
+ >
1205
+ Same Entity
1206
+ </option>
1207
+ <option
1208
+ value="PathObject"
1209
+ >
1210
+ PathObject
1211
+ </option>
1212
+ </select>
1213
+ <div
1214
+ class="leaflet-control-attribution leaflet-control"
1215
+ >
1216
+ <a
1217
+ href="https://leafletjs.com"
1218
+ title="A JavaScript library for interactive maps"
1219
+ >
1220
+ Leaflet
1221
+ </a>
1222
+ </div>
1223
+ </div>
1224
+ </div>
1225
+ <div
1226
+ data-testid="currect-page-entities"
1227
+ />
1228
+ <div
1229
+ data-testid="all-map-entities"
1230
+ />
1231
+ </div>
1232
+ </div>
1233
+ `;
1234
+
1235
+ exports[`Map basic properties in Standalone mode Shows search/query control when in config 1`] = `
1236
+ <div>
1237
+ <div
1238
+ class="map leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom"
1239
+ style="position: relative;"
1240
+ tabindex="0"
1241
+ >
1242
+ <div
1243
+ class="leaflet-pane leaflet-map-pane"
1244
+ style="left: 0px; top: 0px;"
1245
+ >
1246
+ <div
1247
+ class="leaflet-pane leaflet-tile-pane"
1248
+ >
1249
+ <div
1250
+ class="leaflet-layer "
1251
+ style="z-index: 1;"
1252
+ >
1253
+ <div
1254
+ class="leaflet-tile-container leaflet-zoom-animated"
1255
+ style="z-index: 18; left: 0px; top: 0px;"
1256
+ >
1257
+ <img
1258
+ alt=""
1259
+ class="leaflet-tile"
1260
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,0,0,39135.75848200963"
1261
+ style="width: 256px; height: 256px; left: -256px; top: -256px;"
1262
+ />
1263
+ <img
1264
+ alt=""
1265
+ class="leaflet-tile"
1266
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,0,39135.75848201024,39135.75848200963"
1267
+ style="width: 256px; height: 256px; left: 0px; top: -256px;"
1268
+ />
1269
+ <img
1270
+ alt=""
1271
+ class="leaflet-tile"
1272
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,-39135.75848200973,0,0"
1273
+ style="width: 256px; height: 256px; left: -256px; top: 0px;"
1274
+ />
1275
+ <img
1276
+ alt=""
1277
+ class="leaflet-tile"
1278
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,-39135.75848200973,39135.75848201024,0"
1279
+ style="width: 256px; height: 256px; left: 0px; top: 0px;"
1280
+ />
1281
+ </div>
1282
+ </div>
1283
+ </div>
1284
+ <div
1285
+ class="leaflet-pane leaflet-overlay-pane"
1286
+ />
1287
+ <div
1288
+ class="leaflet-pane leaflet-shadow-pane"
1289
+ />
1290
+ <div
1291
+ class="leaflet-pane leaflet-marker-pane"
1292
+ />
1293
+ <div
1294
+ class="leaflet-pane leaflet-tooltip-pane"
1295
+ />
1296
+ <div
1297
+ class="leaflet-pane leaflet-popup-pane"
1298
+ />
1299
+ </div>
1300
+ <div
1301
+ class="leaflet-control-container"
1302
+ >
1303
+ <div
1304
+ class="leaflet-top leaflet-left"
1305
+ >
1306
+ <div
1307
+ class="leaflet-control-zoom leaflet-bar leaflet-control"
1308
+ >
1309
+ <a
1310
+ aria-disabled="false"
1311
+ aria-label="Zoom in"
1312
+ class="leaflet-control-zoom-in"
1313
+ href="#"
1314
+ role="button"
1315
+ title="Zoom in"
1316
+ >
1317
+ <span
1318
+ aria-hidden="true"
1319
+ >
1320
+ +
1321
+ </span>
1322
+ </a>
1323
+ <a
1324
+ aria-disabled="false"
1325
+ aria-label="Zoom out"
1326
+ class="leaflet-control-zoom-out"
1327
+ href="#"
1328
+ role="button"
1329
+ title="Zoom out"
1330
+ >
1331
+ <span
1332
+ aria-hidden="true"
1333
+ >
1334
+
1335
+ </span>
1336
+ </a>
1337
+ </div>
1338
+ <div
1339
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-select-search-btn"
1340
+ title="Select and area and search."
1341
+ >
1342
+ <img
1343
+ class=""
1344
+ src="undefined"
1345
+ />
1346
+ </div>
1347
+ </div>
1348
+ <div
1349
+ class="leaflet-top leaflet-right"
1350
+ >
1351
+ <div
1352
+ aria-haspopup="true"
1353
+ class="leaflet-control-layers leaflet-control"
1354
+ style="display: block;"
1355
+ >
1356
+ <a
1357
+ class="leaflet-control-layers-toggle"
1358
+ href="#"
1359
+ role="button"
1360
+ title="Layers"
1361
+ />
1362
+ <section
1363
+ class="leaflet-control-layers-list"
1364
+ >
1365
+ <div
1366
+ class="leaflet-control-layers-base"
1367
+ />
1368
+ <div
1369
+ class="leaflet-control-layers-separator"
1370
+ style="display: none;"
1371
+ />
1372
+ <div
1373
+ class="leaflet-control-layers-overlays"
1374
+ />
1375
+ </section>
1376
+ </div>
1377
+ </div>
1378
+ <div
1379
+ class="leaflet-bottom leaflet-left"
1380
+ >
1381
+ <div
1382
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-change-view-btn"
1383
+ title="Change the view"
1384
+ >
1385
+ <form
1386
+ class="viewMenu d-none"
1387
+ >
1388
+ <div
1389
+ class="caosdb-f-map-view-select"
1390
+ title="UNCONFIGURED"
1391
+ >
1392
+ <input
1393
+ class=""
1394
+ name="view"
1395
+ type="radio"
1396
+ value="UNCONFIGURED"
1397
+ />
1398
+ <label
1399
+ class=""
1400
+ >
1401
+ UNCONFIGURED
1402
+ </label>
1403
+ </div>
1404
+ </form>
1405
+ <i
1406
+ class="bi-three-dots-vertical"
1407
+ />
1408
+ </div>
1409
+ <div
1410
+ class="leaflet-control-coordinates leaflet-control"
1411
+ >
1412
+ <div
1413
+ class="uiElement label"
1414
+ >
1415
+ <span
1416
+ class="labelFirst"
1417
+ />
1418
+ </div>
1419
+ <div
1420
+ class="uiElement input uiHidden"
1421
+ >
1422
+ <span
1423
+ class=""
1424
+ >
1425
+ Lng:
1426
+ </span>
1427
+ <input
1428
+ class="inputX"
1429
+ type="text"
1430
+ />
1431
+ <span
1432
+ class=""
1433
+ >
1434
+ Lat:
1435
+ </span>
1436
+ <input
1437
+ class="inputY"
1438
+ type="text"
1439
+ />
1440
+ </div>
1441
+ </div>
1442
+ </div>
1443
+ <div
1444
+ class="leaflet-bottom leaflet-right"
1445
+ >
1446
+ <select
1447
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-path-drop-down"
1448
+ title="Show the location of related entities.
1449
+ By default ('Same Entity') entities are shown that have
1450
+ a geographic location. The other options allow to show
1451
+ entities on the map using the location of a related
1452
+ entity."
1453
+ >
1454
+ <option
1455
+ value="same"
1456
+ >
1457
+ Same Entity
1458
+ </option>
1459
+ <option
1460
+ value="PathObject"
1461
+ >
1462
+ PathObject
1463
+ </option>
1464
+ </select>
1465
+ <div
1466
+ class="leaflet-control-attribution leaflet-control"
1467
+ >
1468
+ <a
1469
+ href="https://leafletjs.com"
1470
+ title="A JavaScript library for interactive maps"
1471
+ >
1472
+ Leaflet
1473
+ </a>
1474
+ </div>
1475
+ </div>
1476
+ </div>
1477
+ <div
1478
+ data-testid="currect-page-entities"
1479
+ />
1480
+ <div
1481
+ data-testid="all-map-entities"
1482
+ />
1483
+ </div>
1484
+ </div>
1485
+ `;
1486
+
1487
+ exports[`Map basic properties in Standalone mode shows loading until config is there 1`] = `
1488
+ <div>
1489
+ <div
1490
+ class="map leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom"
1491
+ style="position: relative;"
1492
+ tabindex="0"
1493
+ >
1494
+ <div
1495
+ class="leaflet-pane leaflet-map-pane"
1496
+ style="left: 0px; top: 0px;"
1497
+ >
1498
+ <div
1499
+ class="leaflet-pane leaflet-tile-pane"
1500
+ >
1501
+ <div
1502
+ class="leaflet-layer "
1503
+ style="z-index: 1;"
1504
+ >
1505
+ <div
1506
+ class="leaflet-tile-container leaflet-zoom-animated"
1507
+ style="z-index: 18; left: 0px; top: 0px;"
1508
+ >
1509
+ <img
1510
+ alt=""
1511
+ class="leaflet-tile"
1512
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,0,0,39135.75848200963"
1513
+ style="width: 256px; height: 256px; left: -256px; top: -256px;"
1514
+ />
1515
+ <img
1516
+ alt=""
1517
+ class="leaflet-tile"
1518
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,0,39135.75848201024,39135.75848200963"
1519
+ style="width: 256px; height: 256px; left: 0px; top: -256px;"
1520
+ />
1521
+ <img
1522
+ alt=""
1523
+ class="leaflet-tile"
1524
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=-39135.75848201024,-39135.75848200973,0,0"
1525
+ style="width: 256px; height: 256px; left: -256px; top: 0px;"
1526
+ />
1527
+ <img
1528
+ alt=""
1529
+ class="leaflet-tile"
1530
+ src="/map_tile_caosdb_logo.png?service=WMS&request=GetMap&layers=&styles=&format=image%2Fjpeg&transparent=false&version=1.1.1&width=256&height=256&srs=EPSG%3A3857&bbox=0,-39135.75848200973,39135.75848201024,0"
1531
+ style="width: 256px; height: 256px; left: 0px; top: 0px;"
1532
+ />
1533
+ </div>
1534
+ </div>
1535
+ </div>
1536
+ <div
1537
+ class="leaflet-pane leaflet-overlay-pane"
1538
+ />
1539
+ <div
1540
+ class="leaflet-pane leaflet-shadow-pane"
1541
+ />
1542
+ <div
1543
+ class="leaflet-pane leaflet-marker-pane"
1544
+ />
1545
+ <div
1546
+ class="leaflet-pane leaflet-tooltip-pane"
1547
+ />
1548
+ <div
1549
+ class="leaflet-pane leaflet-popup-pane"
1550
+ />
1551
+ </div>
1552
+ <div
1553
+ class="leaflet-control-container"
1554
+ >
1555
+ <div
1556
+ class="leaflet-top leaflet-left"
1557
+ >
1558
+ <div
1559
+ class="leaflet-control-zoom leaflet-bar leaflet-control"
1560
+ >
1561
+ <a
1562
+ aria-disabled="false"
1563
+ aria-label="Zoom in"
1564
+ class="leaflet-control-zoom-in"
1565
+ href="#"
1566
+ role="button"
1567
+ title="Zoom in"
1568
+ >
1569
+ <span
1570
+ aria-hidden="true"
1571
+ >
1572
+ +
1573
+ </span>
1574
+ </a>
1575
+ <a
1576
+ aria-disabled="false"
1577
+ aria-label="Zoom out"
1578
+ class="leaflet-control-zoom-out"
1579
+ href="#"
1580
+ role="button"
1581
+ title="Zoom out"
1582
+ >
1583
+ <span
1584
+ aria-hidden="true"
1585
+ >
1586
+
1587
+ </span>
1588
+ </a>
1589
+ </div>
1590
+ </div>
1591
+ <div
1592
+ class="leaflet-top leaflet-right"
1593
+ >
1594
+ <div
1595
+ aria-haspopup="true"
1596
+ class="leaflet-control-layers leaflet-control"
1597
+ style="display: none;"
1598
+ >
1599
+ <a
1600
+ class="leaflet-control-layers-toggle"
1601
+ href="#"
1602
+ role="button"
1603
+ title="Layers"
1604
+ />
1605
+ <section
1606
+ class="leaflet-control-layers-list"
1607
+ >
1608
+ <div
1609
+ class="leaflet-control-layers-base"
1610
+ />
1611
+ <div
1612
+ class="leaflet-control-layers-separator"
1613
+ style="display: none;"
1614
+ />
1615
+ <div
1616
+ class="leaflet-control-layers-overlays"
1617
+ />
1618
+ </section>
1619
+ </div>
1620
+ </div>
1621
+ <div
1622
+ class="leaflet-bottom leaflet-left"
1623
+ >
1624
+ <div
1625
+ class="leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-change-view-btn"
1626
+ title="Change the view"
1627
+ >
1628
+ <form
1629
+ class="viewMenu d-none"
1630
+ >
1631
+ <div
1632
+ class="caosdb-f-map-view-select"
1633
+ title="UNCONFIGURED"
1634
+ >
1635
+ <input
1636
+ class=""
1637
+ name="view"
1638
+ type="radio"
1639
+ value="UNCONFIGURED"
1640
+ />
1641
+ <label
1642
+ class=""
1643
+ >
1644
+ UNCONFIGURED
1645
+ </label>
1646
+ </div>
1647
+ </form>
1648
+ <i
1649
+ class="bi-three-dots-vertical"
1650
+ />
1651
+ </div>
1652
+ <div
1653
+ class="leaflet-control-coordinates leaflet-control"
1654
+ >
1655
+ <div
1656
+ class="uiElement label"
1657
+ >
1658
+ <span
1659
+ class="labelFirst"
1660
+ />
1661
+ </div>
1662
+ <div
1663
+ class="uiElement input uiHidden"
1664
+ >
1665
+ <span
1666
+ class=""
1667
+ >
1668
+ Lng:
1669
+ </span>
1670
+ <input
1671
+ class="inputX"
1672
+ type="text"
1673
+ />
1674
+ <span
1675
+ class=""
1676
+ >
1677
+ Lat:
1678
+ </span>
1679
+ <input
1680
+ class="inputY"
1681
+ type="text"
1682
+ />
1683
+ </div>
1684
+ </div>
1685
+ </div>
1686
+ <div
1687
+ class="leaflet-bottom leaflet-right"
1688
+ >
1689
+ <div
1690
+ class="leaflet-control-attribution leaflet-control"
1691
+ >
1692
+ <a
1693
+ href="https://leafletjs.com"
1694
+ title="A JavaScript library for interactive maps"
1695
+ >
1696
+ Leaflet
1697
+ </a>
1698
+ </div>
1699
+ </div>
1700
+ </div>
1701
+ <div
1702
+ data-testid="currect-page-entities"
1703
+ />
1704
+ <div
1705
+ data-testid="all-map-entities"
1706
+ />
1707
+ </div>
1708
+ </div>
1709
+ `;
1710
+
1711
+ exports[`Map basic properties shows loading until config is there 1`] = `
1712
+ <div>
1713
+ <div
1714
+ class="loader loaderFullScreen"
1715
+ data-testid="mapLoader"
1716
+ >
1717
+ <span
1718
+ aria-hidden="true"
1719
+ class="spinner-border spinnerM text-primary"
1720
+ role="status"
1721
+ title="Loading..."
1722
+ />
1723
+ </div>
1724
+ </div>
1725
+ `;