@geogirafe/lib-geoportal 1.3.0-dev.3046054236 → 1.3.0-dev.3060317043

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 (111) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +3 -2
  3. package/api/apigeogirafeapp.js +3 -1
  4. package/assets/i18n/de.json +34 -3
  5. package/assets/i18n/en.json +33 -2
  6. package/assets/i18n/fr.json +35 -4
  7. package/assets/i18n/it.json +37 -6
  8. package/assets/icons/edit.svg +1 -1
  9. package/assets/icons/lock.svg +1 -0
  10. package/assets/icons/streetview-marker-mapillary.svg +1 -0
  11. package/components/cross-section/cross-section-settings/component.js +1 -1
  12. package/components/edit/component.d.ts +52 -36
  13. package/components/edit/component.js +340 -292
  14. package/components/edit/editcomponentstate.d.ts +1 -0
  15. package/components/edit/editcomponentstate.js +1 -0
  16. package/components/edit/editform/component.d.ts +34 -4
  17. package/components/edit/editform/component.js +224 -37
  18. package/components/edit/editform/style.css +51 -16
  19. package/components/edit/geometryedithelper.d.ts +47 -0
  20. package/components/edit/geometryedithelper.js +324 -0
  21. package/components/edit/style.css +71 -28
  22. package/components/layout/component.d.ts +5 -0
  23. package/components/main.d.ts +1 -1
  24. package/components/main.js +1 -1
  25. package/components/map-grid/component.d.ts +4 -0
  26. package/components/map-grid/component.js +6 -0
  27. package/components/print/component.d.ts +1 -1
  28. package/components/streetview/component.d.ts +9 -2
  29. package/components/streetview/component.js +20 -8
  30. package/components/streetview/google.js +1 -1
  31. package/components/streetview/mapillary.d.ts +8 -0
  32. package/components/streetview/mapillary.js +20 -0
  33. package/components/streetview/style.css +16 -0
  34. package/components/streetview/tools/googleprovider.js +9 -2
  35. package/components/streetview/tools/mapillaryprovider.d.ts +70 -0
  36. package/components/streetview/tools/mapillaryprovider.js +150 -0
  37. package/components/treeview/tools/treeviewelement.d.ts +1 -0
  38. package/components/treeview/tools/treeviewelement.js +22 -0
  39. package/components/treeview/treeviewitem/component.js +7 -1
  40. package/models/gmf.d.ts +18 -2
  41. package/models/gmf.js +3 -1
  42. package/models/layers/editablelayer.d.ts +7 -0
  43. package/models/layers/editablelayer.js +7 -0
  44. package/models/layers/layerwms.d.ts +1 -2
  45. package/models/layers/layerwms.js +4 -8
  46. package/models/main.d.ts +9 -4
  47. package/models/main.js +6 -2
  48. package/models/oapiflayer.d.ts +25 -0
  49. package/models/oapiflayer.js +36 -0
  50. package/models/oapiftypes.d.ts +71 -0
  51. package/models/oapiftypes.js +29 -0
  52. package/models/serverogc.d.ts +5 -3
  53. package/models/serverogc.js +19 -6
  54. package/models/serverogcapi.d.ts +2 -0
  55. package/models/serverogcapi.js +2 -0
  56. package/models/serverogcapifeatures.d.ts +5 -62
  57. package/models/serverogcapifeatures.js +8 -4
  58. package/package.json +1 -1
  59. package/templates/iframe.html +1 -0
  60. package/templates/index.html +2 -0
  61. package/templates/mobile.html +1 -0
  62. package/templates/public/about.json +1 -1
  63. package/tools/app/geogirafeapp-mobile.js +2 -0
  64. package/tools/app/geogirafeapp.js +4 -2
  65. package/tools/configuration/girafeconfig.js +1 -8
  66. package/tools/configuration/streetviewconfig.d.ts +12 -1
  67. package/tools/configuration/streetviewconfig.js +26 -4
  68. package/tools/drawing/olDrawing.js +2 -22
  69. package/tools/drawing/shapeConstraints.d.ts +2 -1
  70. package/tools/drawing/shapeConstraints.js +18 -2
  71. package/tools/main.d.ts +9 -7
  72. package/tools/main.js +8 -6
  73. package/tools/ogcapi/ogcapiclient.d.ts +7 -3
  74. package/tools/ogcapi/ogcapiclient.js +49 -4
  75. package/tools/ogcapi/ogcapiconformance.d.ts +2 -2
  76. package/tools/ogcapi/ogcapiconformance.js +7 -13
  77. package/tools/ogcapi/ogcapifeaturesclient.d.ts +65 -30
  78. package/tools/ogcapi/ogcapifeaturesclient.js +265 -139
  79. package/tools/ogcapi/ogcapifeaturesclientgeorama.d.ts +0 -5
  80. package/tools/ogcapi/ogcapifeaturesclientgeorama.js +0 -11
  81. package/tools/ogcapi/ogcapifeaturesclientqgis.d.ts +8 -0
  82. package/tools/ogcapi/ogcapifeaturesclientqgis.js +13 -0
  83. package/tools/ogcapi/ogcapifeaturesmanager.d.ts +61 -8
  84. package/tools/ogcapi/ogcapifeaturesmanager.js +179 -30
  85. package/tools/ogcapi/ogcapifeaturesschema.d.ts +31 -13
  86. package/tools/ogcapi/ogcapifeaturesschema.js +69 -39
  87. package/tools/ogcapi/ogcapifeaturesschemaproperty.d.ts +44 -0
  88. package/tools/ogcapi/ogcapifeaturesschemaproperty.js +137 -0
  89. package/tools/ogcapi/ogcapifeaturesschemavalidator.d.ts +22 -0
  90. package/tools/ogcapi/ogcapifeaturesschemavalidator.js +121 -0
  91. package/tools/state/layout.d.ts +5 -0
  92. package/tools/state/layout.js +2 -1
  93. package/tools/state/state.d.ts +6 -0
  94. package/tools/state/state.js +4 -0
  95. package/tools/state/streetview.d.ts +1 -1
  96. package/tools/state/streetview.js +1 -1
  97. package/tools/themes/themesmanager.d.ts +10 -3
  98. package/tools/themes/themesmanager.js +29 -9
  99. package/tools/time/layertimeformatter.d.ts +0 -5
  100. package/tools/time/layertimeformatter.js +10 -19
  101. package/tools/utils/dateutils.d.ts +40 -0
  102. package/tools/utils/dateutils.js +111 -0
  103. package/tools/utils/utils.d.ts +4 -0
  104. package/tools/utils/utils.js +12 -0
  105. package/tools/wfs/wfsmanager.js +3 -0
  106. package/tools/wms/wmsclient.d.ts +1 -0
  107. package/tools/wms/wmsclient.js +4 -0
  108. package/tools/ogcapi/demolayers.d.ts +0 -1
  109. package/tools/ogcapi/demolayers.js +0 -99
  110. package/tools/ogcapi/ogcapifeaturesclientgmf.d.ts +0 -13
  111. package/tools/ogcapi/ogcapifeaturesclientgmf.js +0 -30
@@ -7,11 +7,13 @@
7
7
  "2D Map": "Mappa 2D",
8
8
  "3D": "3D",
9
9
  "3D Map": "Mappa 3D",
10
+ "A value is required": "È necessario inserire un valore",
10
11
  "About": "Informazioni",
11
12
  "about-panel": "Informazioni",
12
13
  "Activate / Deactivate": "Attiva / Disattiva",
13
14
  "Activate batch creation mode to draw multiple features without needing to reselect the tool": "Attiva la modalità di creazione batch per disegnare più feature senza la necessità di riselezionare lo strumento",
14
15
  "add": "Aggiungi",
16
+ "Add a corner by clicking on an edge.": "Aggiungi un vertice facendo clic su un segmento.",
15
17
  "Add bookmark": "Aggiungi segnalibro",
16
18
  "Add condition": "Aggiungi condizione",
17
19
  "Add filter": "Aggiungi filtro",
@@ -30,6 +32,7 @@
30
32
  "Arrows style": "Stile delle frecce",
31
33
  "Ask a question": "Fai una domanda",
32
34
  "Attribute": "Attributo",
35
+ "Attributes": "Attributi",
33
36
  "auto_WMTS": "WMS/WMTS",
34
37
  "Backend error": "Errore del backend",
35
38
  "basemap": "Mappe di base",
@@ -40,6 +43,8 @@
40
43
  "Build": "Build",
41
44
  "by selecting a theme": "selezionando un tema",
42
45
  "Cancel": "Annulla",
46
+ "Cancel and discard the current changes?": "Annullare e scartare le modifiche correnti?",
47
+ "Cancel drawing": "Annulla il disegno",
43
48
  "Cancel editing": "Annullamento della modifica",
44
49
  "Cannot send message": "Impossibile inviare il messaggio",
45
50
  "category_layer_tree": "Albero dei layer",
@@ -63,6 +68,7 @@
63
68
  "contact-panel": "Contattaci",
64
69
  "Control opacity": "Controlla opacità",
65
70
  "Convert to drawing": "Converti in disegno",
71
+ "Coordinate system mismatch": "Sistema di coordinate incompatibile",
66
72
  "Copy ShortUrl": "Copia ShortUrl",
67
73
  "Copy to Clipboard": "Copia negli appunti",
68
74
  "Copy value": "Copia il valore",
@@ -116,11 +122,10 @@
116
122
  "debug": "Debug",
117
123
  "Define time restriction on group": "Definire la restrizione temporale del gruppo",
118
124
  "Define time restriction on layer": "Definire la restrizione temporale del livello",
119
- "delete": "Elimina",
125
+ "Delete": "Elimina",
120
126
  "Delete all shapes": "Elimina tutte le forme",
121
127
  "Delete bookmark": "Elimina segnalibro",
122
- "Delete Feature": "Elimina funzionalità",
123
- "Delete feature": "Eliminare l'elemento",
128
+ "Delete Feature": "Elimina l'oggetto",
124
129
  "Delete Features": "Elimina oggetti",
125
130
  "Delete shape": "Elimina forma",
126
131
  "Delete Theme": "Elimina tema",
@@ -150,11 +155,11 @@
150
155
  "Draw geometry": "Disegnare una geometria",
151
156
  "Draw LiDAR profile line": "Disegna linea profilo LiDAR",
152
157
  "Draw line": "Disegnare una linea",
153
- "Draw lines": "Disegnare una linea",
158
+ "Draw lines": "Disegnare linee",
154
159
  "Draw point": "Disegnare un punto",
155
- "Draw points": "Disegnare un punto",
160
+ "Draw points": "Disegnare punti",
156
161
  "Draw polygon": "Disegnare un poligono",
157
- "Draw polygons": "Disegnare un poligono",
162
+ "Draw polygons": "Disegnare poligoni",
158
163
  "draw_profile": "Disegna linea di profilo",
159
164
  "draw_profile_help": "Attiva/disattiva il disegno della linea di profilo sulla mappa",
160
165
  "Drawing List": "Elenco dei disegni",
@@ -162,6 +167,7 @@
162
167
  "drawingFillColor": "Colore di riempimento del disegno",
163
168
  "Drawings": "Disegni",
164
169
  "drawingStrokeColor": "Colore del tratto del disegno",
170
+ "Edit layer": "Modifica layer",
165
171
  "edit-panel": "Modifica",
166
172
  "Embed this map": "Incorporare questa mappa",
167
173
  "Empty": "Vuoto",
@@ -188,8 +194,12 @@
188
194
  "external-entry": "Importa un layer",
189
195
  "Failed to create feature": "Non è stato possibile creare l'elemento",
190
196
  "Failed to delete feature": "Errore nell'eliminazione dell'elemento",
197
+ "Failed to load items": "Impossibile caricare gli elementi",
198
+ "Failed to load layer data": "Impossibile caricare i dati del layer",
191
199
  "Failed to update feature": "Non è stato possibile aggiornare l'elemento",
200
+ "Feature deleted": "Elemento eliminato",
192
201
  "Feature ID": "ID elemento",
202
+ "Feature saved": "Elemento salvato",
193
203
  "features": "funzionalità",
194
204
  "feedback-button-tip": "Invia feedback",
195
205
  "feedback-negative": "No",
@@ -222,6 +232,8 @@
222
232
  "filteroperator-NOT LIKE": "NON COME",
223
233
  "filteroperator-OR": "O",
224
234
  "filteroperator-WITHIN": "ALL'INTERNO",
235
+ "Finish drawing": "Termina il disegno",
236
+ "Finish each geometry with a double click.": "Completa ogni geometria con un doppio clic.",
225
237
  "Fix height to": "Fissa l’altezza a",
226
238
  "Fix length to": "Fissa la lunghezza a",
227
239
  "Fix side length to": "Fissare la lunghezza del lato a",
@@ -328,6 +340,7 @@
328
340
  "map": "Mappa",
329
341
  "Map orientation": "Orientamento della mappa",
330
342
  "map.geo.admin.ch": "map.geo.admin.ch",
343
+ "Mapillary": "Mapillary",
331
344
  "Material": "Materiale",
332
345
  "measure-information-full": "Completa",
333
346
  "measure-information-mixed": "Misto",
@@ -340,6 +353,7 @@
340
353
  "Message sent": "Messaggio inviato",
341
354
  "Metadata": "Metadati",
342
355
  "meters": "metri",
356
+ "Modify the geometry by grabbing a corner.": "Modifica la geometria trascinando un vertice.",
343
357
  "Move": "Muovi",
344
358
  "Move Shape": "Sposta forma",
345
359
  "multiple-shapes-selected": "${shape-count} forme selezionate",
@@ -351,16 +365,19 @@
351
365
  "No": "No",
352
366
  "No bookmark": "Nessun segnalibro",
353
367
  "No data": "Nessun dato",
368
+ "No editable layer available": "No editable layer available",
354
369
  "No features where found in your file that could be displayed within the maximal extent configured in your application.": "Nel tuo file non sono state trovate entità che possano essere visualizzate nell'estensione massima configurata nella tua applicazione.",
355
370
  "No features within map extent": "Nessuna entità nell'estensione della mappa",
356
371
  "No graph to export in PNG!": "Nessun grafico da esportare in PNG!",
357
372
  "No layer available": "Nessun layer disponibile",
358
373
  "No match found": "Nessun risultato corrispondente",
359
374
  "No StreetView footage was found near this location": "Nessuna immagine StreetView è stata trovata nelle vicinanze di questo punto",
375
+ "No values available": "Nessun valore disponibile",
360
376
  "Nothing here yet!": "Ancora nessun contenuto!",
361
377
  "Offline data": "Dati offline",
362
378
  "Offline mode": "Modalità offline",
363
379
  "Ok": "Ok",
380
+ "Ok, switch": "OK, cambia",
364
381
  "onboarding-basemap-selection-description": "Scegli quali mappe di base (OpenStreetMap o immagini aeree) desideri visualizzare",
365
382
  "onboarding-basemap-selection-title": "Mappa di base",
366
383
  "onboarding-done-button-text": "Fatto",
@@ -385,6 +402,7 @@
385
402
  "palette_option_viridis": "Viridis",
386
403
  "Please log in to edit layers...": "Effettua il login per modificare i livelli...",
387
404
  "Please review or disable them before printing.": "Si prega di verificarli o disabilitarli prima della stampa.",
405
+ "Please switch the map to the layer coordinate system to prevent precision loss while editing geometries.": "Impostare il sistema di coordinate della mappa su quello del layer per evitare perdite di precisione durante la modifica delle geometrie.",
388
406
  "plugin_infra3d": "Infra3D",
389
407
  "PNG export": "Esporta PNG",
390
408
  "Point": "Punto",
@@ -487,12 +505,14 @@
487
505
  "searchFillColor": "Colore di riempimento dei risultati della ricerca",
488
506
  "searchStrokeColor": "Colore del tratto dei risultati della ricerca",
489
507
  "Select a layer": "Seleziona un layer",
508
+ "Select a value": "Seleziona un valore",
490
509
  "Select all": "Seleziona tutto",
491
510
  "Select all filtered layers": "Slezionare tutti i layers filtrati",
492
511
  "Select an attribute": "Seleziona un attributo",
493
512
  "Select an operator": "Seleziona un operatore",
494
513
  "Select attribute...": "Seleziona attributo...",
495
514
  "Select basemap": "Seleziona mappa di base",
515
+ "Select feature in map": "Seleziona una geometria sulla mappa",
496
516
  "Select File": "Seleziona un file",
497
517
  "Select map size...": "Selezionare le dimensioni della mappa...",
498
518
  "Select none": "Deseleziona tutto",
@@ -553,10 +573,21 @@
553
573
  "Text to draw": "Testo da disegnare",
554
574
  "Thanks for your message. If necessary, somebody will enter in contact with you as soon as possible.": "Grazie per il tuo messaggio. Se necessario, qualcuno ti contatterà il prima possibile.",
555
575
  "The CSV export has been truncated to the maximum number of features allowed for download": "L'esportazione CSV è stata limitata al numero massimo di elementi consentiti per il download.",
576
+ "The edit service of the OGC server _server_ could not be loaded": "Non è stato possibile caricare il servizio di modifica del server OGC _server_",
556
577
  "The following link will be sent with your message. It contains your current configuration and will help us to understand your problem.": "Il seguente link verrà inviato con il tuo messaggio. Contiene la tua configurazione attuale e ci aiuterà a capire il problema.",
557
578
  "The generated document may contain sensitive data.": "Il documento generato potrebbe contenere dati sensibili.",
579
+ "The layer coordinate system is not supported by GeoGirafe. Precision loss may occur while editing.": "Il sistema di coordinate del layer non è supportato da GeoGirafe. Durante la modifica potrebbe verificarsi una perdita di precisione.",
580
+ "The layer is not set up correctly for editing": "Il layer non è configurato correttamente per la modifica.",
558
581
  "The print server is unavailable. Please, try later.": "Il server di stampa non è disponibile. Riprova più tardi.",
559
582
  "The theme {name} is already present in the treeview.": "Il tema {name} è già presente nella struttura ad albero.",
583
+ "The value must be a number": "Il valore deve essere un numero",
584
+ "The value must be at least _minLen_ characters long": "Il valore deve essere almeno _minLen_ caratteri lungo",
585
+ "The value must be greater than _min_": "Il valore deve essere maggiore di _min_",
586
+ "The value must be greater than or equal to _min_": "Il valore deve essere maggiore o uguale a _min_",
587
+ "The value must be less than _max_": "Il valore deve essere minore di _max_",
588
+ "The value must be less than or equal to _max_": "Il valore deve essere minore o uguale a _max_",
589
+ "The value must be no longer than _maxLen_ characters": "Il valore non deve superare _maxLen_ caratteri",
590
+ "The value must satisfy the regular expression pattern _pattern_": "Il valore deve rispettare l'espressione regolare _pattern_",
560
591
  "theme": "Tema predefinito",
561
592
  "Theme selection": "Selezione del tema",
562
593
  "Themes": "Temi",
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><g stroke="#000" stroke-width="2"><path d="M20 12c0 1.657-3.582 3-8 3s-8-1.343-8-3M20 18c0 1.657-3.582 3-8 3s-8-1.343-8-3"/><ellipse cx="12" cy="6" rx="8" ry="3"/><path d="M4 6v12M20 6v12"/></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" fill="none" viewBox="-1.12 -1.12 18.24 18.24"><g fill="#000"><path fill-rule="evenodd" d="M11.436 1.005A1.75 1.75 0 0 1 13.902.79l.702.589a1.75 1.75 0 0 1 .216 2.465l-5.704 6.798a4.75 4.75 0 0 1-1.497 1.187l-2.572 1.299a.75.75 0 0 1-1.056-.886l.833-2.759a4.75 4.75 0 0 1 .908-1.68zm1.502.934a.25.25 0 0 0-.353.03l-.53.633 1.082.914.534-.636a.25.25 0 0 0-.031-.352zm-.765 2.726-1.082-.914-4.21 5.016a3.25 3.25 0 0 0-.621 1.15L5.933 11l1.01-.51a3.25 3.25 0 0 0 1.024-.812z" clip-rule="evenodd"/><path d="M3.25 3.5a.75.75 0 0 0-.75.75v9.5c0 .414.336.75.75.75h9.5a.75.75 0 0 0 .75-.75V9A.75.75 0 0 1 15 9v4.75A2.25 2.25 0 0 1 12.75 16h-9.5A2.25 2.25 0 0 1 1 13.75v-9.5A2.25 2.25 0 0 1 3.25 2H6a.75.75 0 0 1 0 1.5z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="24" height="24" viewBox="630 796 200 200"><path d="M787.116 872.255h-4.284v-23.424C782.832 819.699 759.133 796 730 796c-29.13 0-52.83 23.699-52.83 52.831v23.424h-4.287c-11.133 0-20.159 9.025-20.159 20.159v62.589c0 22.642 18.354 40.997 40.996 40.997h72.559c22.642 0 40.996-18.355 40.996-40.997v-62.589c0-11.134-9.025-20.159-20.159-20.159m-49.61 62.29v25.462a7.507 7.507 0 0 1-15.012 0v-25.462c-5.718-2.788-9.667-8.639-9.667-15.428 0-9.484 7.689-17.174 17.173-17.174 9.485 0 17.174 7.689 17.174 17.174 0 6.789-3.951 12.641-9.668 15.428m26.22-62.29h-67.448v-23.424c0-18.596 15.128-33.725 33.723-33.725 18.597 0 33.725 15.129 33.725 33.725z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill="#05cb63" fill-opacity=".35" d="M24 24 10 4a24 24 0 0 1 28 0Z"/><circle cx="24" cy="24" r="6" fill="#05cb63" stroke="#fff" stroke-width="2"/></svg>
@@ -23,7 +23,7 @@ class CrossSectionSettingsComponent extends GirafeHTMLElement {
23
23
  .hidden{display:none!important}.gg-rotate90{transform:rotate(90deg)}.gg-rotate180{transform:rotate(180deg)}.gg-rotate270{transform:rotate(270deg)}img{filter:var(--svg-filter)}img.legend-image{filter:var(--svg-map-filter);background:var(--svg-legend-bkg)}div{scrollbar-width:thin}a,a:visited{color:var(--link-color)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin-wait{0%{transform:rotate(0)}7%{transform:rotate(360deg)}to{transform:rotate(360deg)}}.gg-spin{animation-name:spin;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite}.gg-spin-wait{animation-name:spin-wait;animation-duration:10s;animation-timing-function:linear;animation-iteration-count:infinite}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#999}button,input,select,textarea{font:inherit}.gg-button,.gg-select,.gg-input,.gg-textarea{background-color:var(--bkg-color);color:var(--text-color);border:var(--app-standard-border);box-sizing:border-box;cursor:pointer;border-radius:3px;outline:0;margin:0;padding:0 0 0 .5rem;display:inline-block}.gg-label{background-color:var(--bkg-color);color:var(--text-color);border:none;align-items:center;margin:0;padding:0;display:flex}.gg-button,.gg-select,.gg-input,.gg-label{min-height:calc(var(--app-standard-height) / 1.5)}.gg-textarea{max-height:initial;resize:vertical;height:6rem;padding:.5rem;line-height:1.3rem}.gg-input{cursor:text}.gg-checkbox{accent-color:var(--text-color);cursor:pointer;width:1.2rem}.gg-range{accent-color:var(--text-color)}.gg-button{padding:0 .5rem}.gg-button.active{border:solid 1px var(--text-color-grad1);background-color:var(--bkg-color-grad2)}.gg-button:disabled{background-color:var(--bkg-color-grad1);color:var(--text-color-grad2);cursor:not-allowed;border:none}.gg-button:disabled img{filter:opacity(.6)}.gg-input:disabled,.gg-select:disabled,.gg-textarea:disabled{background-color:var(--bkg-color-grad1);color:var(--text-color-grad2);cursor:not-allowed}.gg-button>img{vertical-align:middle}.gg-icon-button{color:var(--text-color);cursor:pointer;background-color:#0000;border:none;flex-direction:column;justify-content:center;align-items:center;padding:0;display:flex}.gg-icon{justify-content:center;align-items:center;display:flex}.gg-big,.gg-big-withtext{min-width:var(--app-standard-height);min-height:var(--app-standard-height);max-height:var(--app-standard-height)}.gg-big img,.gg-big-withtext img{width:calc(var(--app-standard-height) - 1.5rem);margin:0}.gg-big-withtext span{font-variant:small-caps;padding:0 1rem;font-size:.9rem}.gg-medium,.gg-medium-withtext{min-width:calc(var(--app-standard-height) / 1.2);min-height:calc(var(--app-standard-height) / 1.2);max-height:calc(var(--app-standard-height) / 1.2);flex-direction:row}.gg-medium img{width:calc(var(--app-standard-height) / 2.4);margin:0}.gg-medium-withtext img{width:calc(var(--app-standard-height) / 2.4);margin-left:.5rem}.gg-medium-withtext span{padding:0 1rem 0 .5rem;font-size:.9rem}.gg-small,.gg-small-withtext{min-width:calc(var(--app-standard-height) / 2);min-height:calc(var(--app-standard-height) / 2);max-height:calc(var(--app-standard-height) / 2);flex-direction:row}.gg-small img{width:calc(var(--app-standard-height) / 3);margin:0}.gg-small-withtext img{width:calc(var(--app-standard-height) / 3);margin-left:.5rem}.gg-small-withtext span{padding:0 .5rem 0 .3rem;font-size:.9rem}.gg-button:hover:not(:disabled),.gg-select:hover:not(:disabled),.gg-input:hover:not(:disabled),.gg-textarea:hover:not(:disabled),.gg-icon-button:hover:not(:disabled){background-color:var(--bkg-color-grad1)}.gg-opacity{opacity:.5}.gg-opacity:hover{opacity:1;background-color:#0000}.gg-tabs{cursor:pointer;grid-auto-flow:column;padding-bottom:1rem;font-size:1rem;display:grid}.gg-tab{border:none;border-bottom:var(--app-standard-border);cursor:pointer;color:var(--text-color);background:0 0;padding:.5rem}.gg-tab.active{border-bottom:solid 1px var(--text-color)}.girafe-button-big,.girafe-button-large,.girafe-button-small,.girafe-button-tiny{color:var(--text-color);background-color:#0000;border:none;flex-direction:column;display:flex}.girafe-button-big:hover,.girafe-button-large:hover,.girafe-button-small:hover,.girafe-button-tiny:hover{background-color:var(--bkg-color-grad1);cursor:pointer}.girafe-button-big.dark,.girafe-button-large.dark,.girafe-button-small.dark,.girafe-button-tiny.dark{background-color:var(--bkg-color);filter:invert()}.girafe-button-big{width:var(--app-standard-height);height:var(--app-standard-height);align-items:center;padding:1rem}.girafe-button-big img{overflow:hidden}.girafe-button-large{flex-direction:row}.girafe-button-large img{height:2rem;margin:.3rem}.girafe-button-large span{height:2rem;margin:.3rem;line-height:2rem}.girafe-button-small{min-width:calc(var(--app-standard-height) / 2);height:calc(var(--app-standard-height) / 2);align-items:center;padding:.5rem}.girafe-button-small img{overflow:hidden}.girafe-button-small span{text-align:left;text-overflow:ellipsis;width:100%;overflow:hidden}.girafe-button-tiny{align-items:center;width:1rem;height:1rem;padding:0}.girafe-button-tiny img{overflow:hidden}.girafe-onboarding-theme{background-color:var(--bkg-color)!important;color:var(--text-color)!important}.girafe-onboarding-theme button{background-color:var(--bkg-color)!important;color:var(--text-color)!important;text-shadow:none!important}.girafe-onboarding-theme button.driver-popover-close-btn{z-index:10000}.tippy-box{background-color:var(--bkg-color)!important;border:var(--app-standard-border)!important}.tippy-content{color:var(--text-color)!important}.tippy-arrow{color:var(--bkg-color)!important}.tippy-box[data-theme~=error]{background-color:var(--error-color);white-space:pre-line}div.tippy-box[data-theme=image-popup]{border:var(--app-standard-border)!important;& div.tippy-content{background-color:var(--bkg-color)!important;& img{max-width:20rem;max-height:20rem}}& div.tippy-arrow{color:var(--bkg-color)!important}}
24
24
  </style>
25
25
  <style>${this.customStyle}</style>
26
- <div id="panel"><div id="content"><div class="btn-group-flex"><button id="draw-profile-btn" class="${this.crossSectionState.drawProfile ? 'gg-button active' : 'gg-button'}" tip="draw_profile_help" onclick="${() => this.toggleLineDraw()}" i18n="draw_profile">Draw</button> <button id="delete-profile-btn" class="gg-button" tip="delete_help" onclick="${() => this.deleteProfile()}" i18n="delete">Delete</button></div><div class="btn-group-flex"><label for="section-width-btn" i18n="profile_width" class="gg-label">Width [m]</label> <input id="section-width-btn" class="gg-input" type="number" value="${this.crossSectionState.sectionWidthSettings.value}" min="${this.crossSectionState.sectionWidthSettings.min}" max="${this.crossSectionState.sectionWidthSettings.max}" step="${this.crossSectionState.sectionWidthSettings.step}" onchange="${(e) => this.setSectionWidth(e.target.value)}"></div><div class="btn-group-flex"><button id="reset-zoom-btn" class="gg-button" tip="profile_reset_view_help" onclick="${() => this.resetZoom()}" i18n="profile_reset_view">Reset view</button> <button id="sync-views-btn" class="${this.crossSectionState.syncViews ? 'gg-button active' : 'gg-button'}" tip="profile_sync_view_help" onclick="${() => this.setViewSync(!this.crossSectionState.syncViews)}" i18n="profile_sync_view">Sync. views</button></div><div class="btn-group-flex"><button class="gg-icon-button gg-big" tip="profile_shift_up_help" onclick="${() => this.shiftLinestring([0.0, this.crossSectionState.linestringShift])}"><img src="icons/arrow_up.svg" alt="${this.context.i18nManager.getTranslation('profile_shift_up_help')}"></button> <button class="gg-icon-button gg-big" tip="profile_shift_down_help" onclick="${() => this.shiftLinestring([0.0, -this.crossSectionState.linestringShift])}"><img src="icons/arrow_down.svg" alt="${this.context.i18nManager.getTranslation('profile_shift_down_help')}"></button> <button class="gg-icon-button gg-big" tip="profile_shift_left_help" onclick="${() => this.shiftLinestring([-this.crossSectionState.linestringShift, 0.0])}"><img src="icons/arrow_left.svg" alt="${this.context.i18nManager.getTranslation('profile_shift_left_help')}"></button> <button class="gg-icon-button gg-big" tip="profile_shift_right_help" onclick="${() => this.shiftLinestring([this.crossSectionState.linestringShift, 0.0])}"><img src="icons/arrow_right.svg" alt="${this.context.i18nManager.getTranslation('profile_shift_right_help')}"></button></div><div class="btn-group-flex"><div class="cell"><label for="z-ratio-btn" class="gg-label">${this.context.i18nManager.getTranslation('profile_exaggeration')} (${this.crossSectionState.verticalExaggerationSettings.value})</label><div style="display: flex; align-items: center"><input id="z-ratio-btn" type="range" class="gg-range" min="${this.crossSectionState.verticalExaggerationSettings.min}" max="${this.crossSectionState.verticalExaggerationSettings.max}" step="${this.crossSectionState.verticalExaggerationSettings.step}" value="${this.crossSectionState.verticalExaggerationSettings.value}" oninput="${(e) => this.setVerticalExaggeration(Number.parseFloat(e.target.value))}" style="flex: 1; min-width: 0; box-sizing: border-box"> <button id="z-ratio-reset-btn" class="reset-btn" tip="profile_exaggeration_reset_help" onclick="${() => this.setVerticalExaggeration(this.crossSectionState.verticalExaggerationSettings.default)}"><img src="icons/restart_alt.svg" alt="${this.context.i18nManager.getTranslation('profile_exaggeration_reset_help')}"></button></div></div></div><div class="btn-group-flex"><div class="cell"><label for="point-size-btn" class="gg-label">${this.context.i18nManager.getTranslation('profile_point_size')} (${this.crossSectionState.pointSizeSettings.value})</label><div style="display: flex; align-items: center"><input id="point-size-btn" type="range" class="gg-range" min="${this.crossSectionState.pointSizeSettings.min}" max="${this.crossSectionState.pointSizeSettings.max}" step="${this.crossSectionState.pointSizeSettings.step}" value="${this.crossSectionState.pointSizeSettings.value}" oninput="${(e) => this.setPointSize(Number.parseFloat(e.target.value))}" style="flex: 1; min-width: 0; box-sizing: border-box"> <button id="point-size-reset-btn" class="reset-btn" tip="profile_point_size_reset_help" onclick="${() => this.setPointSize(this.crossSectionState.pointSizeSettings.default)}"><img src="icons/restart_alt.svg" alt="${this.context.i18nManager.getTranslation('profile_point_size_reset_help')}"></button></div></div></div><div class="btn-group-flex"><label for="background-color-btn" i18n="profile_background_color" class="gg-label">Background color</label> <input id="background-color-btn" class="gg-input" type="color" value="${this.crossSectionState.backgroundColor}" oninput="${(e) => this.setBackgroundColor(e.target.value)}"></div><div class="btn-group-flex"><label for="sequential-color-btn" i18n="profile_colormap" class="gg-label">Colorscale</label> <select id="sequential-color-btn" class="gg-select" oninput="${(e) => this.setColorPalette(e.target.value)}"><option value="spectral" ?selected="${this.crossSectionState.colorPalette === 'spectral'}" i18n="palette_option_spectral">Spectral<option value="greys" ?selected="${this.crossSectionState.colorPalette === 'greys'}" i18n="palette_option_greys">Greys<option value="blues" ?selected="${this.crossSectionState.colorPalette === 'blues'}" i18n="palette_option_blues">Blues<option value="viridis" ?selected="${this.crossSectionState.colorPalette === 'viridis'}" i18n="palette_option_viridis">Viridis<option value="magma" ?selected="${this.crossSectionState.colorPalette === 'magma'}" i18n="palette_option_magma">Magma</select></div><div class="option"><label for="grid-btn" i18n="profile_toggle_grid" class="gg-label">Show grid</label> <input id="grid-btn" class="gg-checkbox" ?checked="${this.crossSectionState.gridVisible}" type="checkbox" onchange="${(e) => this.setGridVisibility(e.target.checked)}"></div><h3 i18n="profile_pointcloud">Pointclouds</h3><div class="btn-group-flex loader-progress"><div class="progress-wrapper" tip="profile_load_indicator_help"><progress id="load-progress" class="gg-progress" value="${this.crossSectionState.numberOfPoints}" max="${this.crossSectionState.maxNumberOfPoints}"></progress> <span class="progress-label">${(this.crossSectionState.loading) ? uHtml `<img src="icons/progress.svg" alt="Loading" class="gg-spin gg-small progress-icon">` : uHtml ``} ${this.crossSectionState.numberOfPoints} / ${this.crossSectionState.maxNumberOfPoints}</span></div></div><div>${this.crossSectionState.datasets.map(f => uHtml `<div class="dataset-row"><input type="checkbox" id="${f.id}" class="gg-checkbox" aria-label="${f.id}" ?checked="${f.active}" onchange="${() => this.toggleVisibility(f.id)}"> <span class="dataset-name" i18n="${f.id}">${f.id}</span> <select class="gg-select" aria-label="Color variable" oninput="${(e) => this.setColorVariable(f.id, e.target.value)}"><option value="uniform" ?selected="${f.colorby === 'uniform'}" i18n="color_option_uniform">Uniform<option value="natural" ?selected="${f.colorby === 'natural'}" i18n="color_option_natural">Natural<option value="intensity" ?selected="${f.colorby === 'intensity'}" i18n="color_option_intensity">Intensity<option value="classification" ?selected="${f.colorby === 'classification'}" i18n="color_option_classification">Classification</select> <input id="uniform-color-btn" type="color" aria-label="Uniform color" value="${f.color}" oninput="${(e) => this.setColor(f.id, e.target.value)}"></div>`)}</div><h3 i18n="profile_measure_and_annotate">Measurements and annotations</h3><div class="btn-group-flex"><button id="draw-measurements-btn" class="${this.crossSectionState.drawMeasurement ? 'gg-button active' : 'gg-button'}" tip="profile_measurement_help" onclick="${() => this.toggleMeasureDraw()}" i18n="profile_measurement" ?disabled="${!this.crossSectionState.enableMeasurement}">Measure</button> <button id="delete-measurements-btn" class="gg-button" tip="profile_delete_measurements_help" onclick="${() => this.deleteAllMeasurements()}" i18n="profile_delete_measurements">Delete all</button></div><div class="scrollable-table-container"><table id="measurements-table" class="scrollable-table"><thead><tr><th class="table-cell sticky-header" style="text-align: center"><th class="table-cell sticky-header" style="text-align: right" i18n="profile_table_dist">DIST.<th class="table-cell sticky-header" style="text-align: right" i18n="profile_table_slope">SLOPE.<th class="table-cell sticky-header" style="text-align: center"><tbody></table></div><div class="btn-group-flex"><button id="draw-markers-btn" class="${this.crossSectionState.drawMarker ? 'gg-button active' : 'gg-button'}" tip="profile_draw_markers_help" onclick="${() => this.toggleMarkerDraw()}" i18n="profile_draw_markers" ?disabled="${!this.crossSectionState.enableAnnotation}">Annotate</button> <button id="delete-markers-btn" class="gg-button" tip="profile_delete_markers_help" onclick="${() => this.deleteAllMarkers()}" i18n="profile_delete_markers">Delete all</button></div><div class="scrollable-table-container"><table id="markers-table" class="scrollable-table"><thead><tr><th class="sticky-header" style="text-align: center" i18n="profile_table_id">ID<th class="sticky-header" style="text-align: right" i18n="profile_table_coord">COORD.<th class="sticky-header" style="text-align: center"><th class="sticky-header" style="text-align: center"><th class="sticky-header" style="text-align: center"><tbody></table></div><h3 i18n="profile_print_title">Print</h3><div class="btn-group-flex"><select id="print-profile-format-btn" class="gg-select" aria-label="Print format" oninput="${(e) => this.setPrintFileFormat(e.target.value)}"><option value="svg" i18n="SVG">SVG</select> <button id="print-profile-btn" class="gg-button" tip="profile_print_help" onclick="${() => this.printPlot(this.crossSectionState.printFileFormat)}" i18n="profile_print">Print</button></div><h3 i18n="profile_download_title">Downloads</h3><div class="text-label" i18n="profile_markers_download">Markers</div><div class="btn-group-flex"><select id="download-markers-format-btn" class="gg-select" aria-label="Markers format" oninput="${(e) => this.setAnnotationsFileFormat(e.target.value)}"><option value="kml" i18n="KML">KML<option value="geojson" i18n="GeoJSON">GeoJSON<option value="gpx" i18n="GPX">GPX</select> <button id="download-markers-btn" class="gg-button" tip="download_help" onclick="${() => this.exportFeature(this.points, 'markers', this.crossSectionState.downloadAnnotationsFormat)}" i18n="download" ?disabled="${!this.crossSectionState.enableAnnotationsDownload}">Download</button></div><div class="text-label" i18n="profile_linestring_download">Profile line</div><div class="btn-group-flex"><select id="download-linestring-format-btn" class="gg-select" aria-label="Profile line format" oninput="${(e) => this.setLineFileFormat(e.target.value)}"><option value="kml" i18n="KML">KML<option value="geojson" i18n="GeoJSON">GeoJSON<option value="gpx" i18n="GPX">GPX</select> <button id="download-linestring-btn" class="gg-button" tip="download_help" onclick="${() => this.exportFeature([this.linestring], 'linestring', this.crossSectionState.downloadLinestringFormat)}" i18n="download" ?disabled="${!this.crossSectionState.enableLinestringDownload}">Download</button></div></div></div>
26
+ <div id="panel"><div id="content"><div class="btn-group-flex"><button id="draw-profile-btn" class="${this.crossSectionState.drawProfile ? 'gg-button active' : 'gg-button'}" tip="draw_profile_help" onclick="${() => this.toggleLineDraw()}" i18n="draw_profile">Draw</button> <button id="delete-profile-btn" class="gg-button" tip="delete_help" onclick="${() => this.deleteProfile()}" i18n="Delete">Delete</button></div><div class="btn-group-flex"><label for="section-width-btn" i18n="profile_width" class="gg-label">Width [m]</label> <input id="section-width-btn" class="gg-input" type="number" value="${this.crossSectionState.sectionWidthSettings.value}" min="${this.crossSectionState.sectionWidthSettings.min}" max="${this.crossSectionState.sectionWidthSettings.max}" step="${this.crossSectionState.sectionWidthSettings.step}" onchange="${(e) => this.setSectionWidth(e.target.value)}"></div><div class="btn-group-flex"><button id="reset-zoom-btn" class="gg-button" tip="profile_reset_view_help" onclick="${() => this.resetZoom()}" i18n="profile_reset_view">Reset view</button> <button id="sync-views-btn" class="${this.crossSectionState.syncViews ? 'gg-button active' : 'gg-button'}" tip="profile_sync_view_help" onclick="${() => this.setViewSync(!this.crossSectionState.syncViews)}" i18n="profile_sync_view">Sync. views</button></div><div class="btn-group-flex"><button class="gg-icon-button gg-big" tip="profile_shift_up_help" onclick="${() => this.shiftLinestring([0.0, this.crossSectionState.linestringShift])}"><img src="icons/arrow_up.svg" alt="${this.context.i18nManager.getTranslation('profile_shift_up_help')}"></button> <button class="gg-icon-button gg-big" tip="profile_shift_down_help" onclick="${() => this.shiftLinestring([0.0, -this.crossSectionState.linestringShift])}"><img src="icons/arrow_down.svg" alt="${this.context.i18nManager.getTranslation('profile_shift_down_help')}"></button> <button class="gg-icon-button gg-big" tip="profile_shift_left_help" onclick="${() => this.shiftLinestring([-this.crossSectionState.linestringShift, 0.0])}"><img src="icons/arrow_left.svg" alt="${this.context.i18nManager.getTranslation('profile_shift_left_help')}"></button> <button class="gg-icon-button gg-big" tip="profile_shift_right_help" onclick="${() => this.shiftLinestring([this.crossSectionState.linestringShift, 0.0])}"><img src="icons/arrow_right.svg" alt="${this.context.i18nManager.getTranslation('profile_shift_right_help')}"></button></div><div class="btn-group-flex"><div class="cell"><label for="z-ratio-btn" class="gg-label">${this.context.i18nManager.getTranslation('profile_exaggeration')} (${this.crossSectionState.verticalExaggerationSettings.value})</label><div style="display: flex; align-items: center"><input id="z-ratio-btn" type="range" class="gg-range" min="${this.crossSectionState.verticalExaggerationSettings.min}" max="${this.crossSectionState.verticalExaggerationSettings.max}" step="${this.crossSectionState.verticalExaggerationSettings.step}" value="${this.crossSectionState.verticalExaggerationSettings.value}" oninput="${(e) => this.setVerticalExaggeration(Number.parseFloat(e.target.value))}" style="flex: 1; min-width: 0; box-sizing: border-box"> <button id="z-ratio-reset-btn" class="reset-btn" tip="profile_exaggeration_reset_help" onclick="${() => this.setVerticalExaggeration(this.crossSectionState.verticalExaggerationSettings.default)}"><img src="icons/restart_alt.svg" alt="${this.context.i18nManager.getTranslation('profile_exaggeration_reset_help')}"></button></div></div></div><div class="btn-group-flex"><div class="cell"><label for="point-size-btn" class="gg-label">${this.context.i18nManager.getTranslation('profile_point_size')} (${this.crossSectionState.pointSizeSettings.value})</label><div style="display: flex; align-items: center"><input id="point-size-btn" type="range" class="gg-range" min="${this.crossSectionState.pointSizeSettings.min}" max="${this.crossSectionState.pointSizeSettings.max}" step="${this.crossSectionState.pointSizeSettings.step}" value="${this.crossSectionState.pointSizeSettings.value}" oninput="${(e) => this.setPointSize(Number.parseFloat(e.target.value))}" style="flex: 1; min-width: 0; box-sizing: border-box"> <button id="point-size-reset-btn" class="reset-btn" tip="profile_point_size_reset_help" onclick="${() => this.setPointSize(this.crossSectionState.pointSizeSettings.default)}"><img src="icons/restart_alt.svg" alt="${this.context.i18nManager.getTranslation('profile_point_size_reset_help')}"></button></div></div></div><div class="btn-group-flex"><label for="background-color-btn" i18n="profile_background_color" class="gg-label">Background color</label> <input id="background-color-btn" class="gg-input" type="color" value="${this.crossSectionState.backgroundColor}" oninput="${(e) => this.setBackgroundColor(e.target.value)}"></div><div class="btn-group-flex"><label for="sequential-color-btn" i18n="profile_colormap" class="gg-label">Colorscale</label> <select id="sequential-color-btn" class="gg-select" oninput="${(e) => this.setColorPalette(e.target.value)}"><option value="spectral" ?selected="${this.crossSectionState.colorPalette === 'spectral'}" i18n="palette_option_spectral">Spectral<option value="greys" ?selected="${this.crossSectionState.colorPalette === 'greys'}" i18n="palette_option_greys">Greys<option value="blues" ?selected="${this.crossSectionState.colorPalette === 'blues'}" i18n="palette_option_blues">Blues<option value="viridis" ?selected="${this.crossSectionState.colorPalette === 'viridis'}" i18n="palette_option_viridis">Viridis<option value="magma" ?selected="${this.crossSectionState.colorPalette === 'magma'}" i18n="palette_option_magma">Magma</select></div><div class="option"><label for="grid-btn" i18n="profile_toggle_grid" class="gg-label">Show grid</label> <input id="grid-btn" class="gg-checkbox" ?checked="${this.crossSectionState.gridVisible}" type="checkbox" onchange="${(e) => this.setGridVisibility(e.target.checked)}"></div><h3 i18n="profile_pointcloud">Pointclouds</h3><div class="btn-group-flex loader-progress"><div class="progress-wrapper" tip="profile_load_indicator_help"><progress id="load-progress" class="gg-progress" value="${this.crossSectionState.numberOfPoints}" max="${this.crossSectionState.maxNumberOfPoints}"></progress> <span class="progress-label">${(this.crossSectionState.loading) ? uHtml `<img src="icons/progress.svg" alt="Loading" class="gg-spin gg-small progress-icon">` : uHtml ``} ${this.crossSectionState.numberOfPoints} / ${this.crossSectionState.maxNumberOfPoints}</span></div></div><div>${this.crossSectionState.datasets.map(f => uHtml `<div class="dataset-row"><input type="checkbox" id="${f.id}" class="gg-checkbox" aria-label="${f.id}" ?checked="${f.active}" onchange="${() => this.toggleVisibility(f.id)}"> <span class="dataset-name" i18n="${f.id}">${f.id}</span> <select class="gg-select" aria-label="Color variable" oninput="${(e) => this.setColorVariable(f.id, e.target.value)}"><option value="uniform" ?selected="${f.colorby === 'uniform'}" i18n="color_option_uniform">Uniform<option value="natural" ?selected="${f.colorby === 'natural'}" i18n="color_option_natural">Natural<option value="intensity" ?selected="${f.colorby === 'intensity'}" i18n="color_option_intensity">Intensity<option value="classification" ?selected="${f.colorby === 'classification'}" i18n="color_option_classification">Classification</select> <input id="uniform-color-btn" type="color" aria-label="Uniform color" value="${f.color}" oninput="${(e) => this.setColor(f.id, e.target.value)}"></div>`)}</div><h3 i18n="profile_measure_and_annotate">Measurements and annotations</h3><div class="btn-group-flex"><button id="draw-measurements-btn" class="${this.crossSectionState.drawMeasurement ? 'gg-button active' : 'gg-button'}" tip="profile_measurement_help" onclick="${() => this.toggleMeasureDraw()}" i18n="profile_measurement" ?disabled="${!this.crossSectionState.enableMeasurement}">Measure</button> <button id="delete-measurements-btn" class="gg-button" tip="profile_delete_measurements_help" onclick="${() => this.deleteAllMeasurements()}" i18n="profile_delete_measurements">Delete all</button></div><div class="scrollable-table-container"><table id="measurements-table" class="scrollable-table"><thead><tr><th class="table-cell sticky-header" style="text-align: center"><th class="table-cell sticky-header" style="text-align: right" i18n="profile_table_dist">DIST.<th class="table-cell sticky-header" style="text-align: right" i18n="profile_table_slope">SLOPE.<th class="table-cell sticky-header" style="text-align: center"><tbody></table></div><div class="btn-group-flex"><button id="draw-markers-btn" class="${this.crossSectionState.drawMarker ? 'gg-button active' : 'gg-button'}" tip="profile_draw_markers_help" onclick="${() => this.toggleMarkerDraw()}" i18n="profile_draw_markers" ?disabled="${!this.crossSectionState.enableAnnotation}">Annotate</button> <button id="delete-markers-btn" class="gg-button" tip="profile_delete_markers_help" onclick="${() => this.deleteAllMarkers()}" i18n="profile_delete_markers">Delete all</button></div><div class="scrollable-table-container"><table id="markers-table" class="scrollable-table"><thead><tr><th class="sticky-header" style="text-align: center" i18n="profile_table_id">ID<th class="sticky-header" style="text-align: right" i18n="profile_table_coord">COORD.<th class="sticky-header" style="text-align: center"><th class="sticky-header" style="text-align: center"><th class="sticky-header" style="text-align: center"><tbody></table></div><h3 i18n="profile_print_title">Print</h3><div class="btn-group-flex"><select id="print-profile-format-btn" class="gg-select" aria-label="Print format" oninput="${(e) => this.setPrintFileFormat(e.target.value)}"><option value="svg" i18n="SVG">SVG</select> <button id="print-profile-btn" class="gg-button" tip="profile_print_help" onclick="${() => this.printPlot(this.crossSectionState.printFileFormat)}" i18n="profile_print">Print</button></div><h3 i18n="profile_download_title">Downloads</h3><div class="text-label" i18n="profile_markers_download">Markers</div><div class="btn-group-flex"><select id="download-markers-format-btn" class="gg-select" aria-label="Markers format" oninput="${(e) => this.setAnnotationsFileFormat(e.target.value)}"><option value="kml" i18n="KML">KML<option value="geojson" i18n="GeoJSON">GeoJSON<option value="gpx" i18n="GPX">GPX</select> <button id="download-markers-btn" class="gg-button" tip="download_help" onclick="${() => this.exportFeature(this.points, 'markers', this.crossSectionState.downloadAnnotationsFormat)}" i18n="download" ?disabled="${!this.crossSectionState.enableAnnotationsDownload}">Download</button></div><div class="text-label" i18n="profile_linestring_download">Profile line</div><div class="btn-group-flex"><select id="download-linestring-format-btn" class="gg-select" aria-label="Profile line format" oninput="${(e) => this.setLineFileFormat(e.target.value)}"><option value="kml" i18n="KML">KML<option value="geojson" i18n="GeoJSON">GeoJSON<option value="gpx" i18n="GPX">GPX</select> <button id="download-linestring-btn" class="gg-button" tip="download_help" onclick="${() => this.exportFeature([this.linestring], 'linestring', this.crossSectionState.downloadLinestringFormat)}" i18n="download" ?disabled="${!this.crossSectionState.enableLinestringDownload}">Download</button></div></div></div>
27
27
  ${this.htmlUnsafe(this.feedbackTemplateHtml ?? '')}`;
28
28
  };
29
29
  crossSectionState;
@@ -1,7 +1,9 @@
1
1
  import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
2
- import EditFromComponent from './editform/component.js';
3
- import { OapifLayer } from '../../models/serverogcapifeatures.js';
2
+ import Feature from 'ol/Feature.js';
3
+ import EditFormComponent from './editform/component.js';
4
4
  import IGirafePanel from '../../tools/state/igirafepanel.js';
5
+ import { GgUserInteractionEvent } from '../../tools/state/userinteractionevent.js';
6
+ import { OapifLayer } from '../../models/oapiflayer.js';
5
7
  export default class EditComponent extends GirafeHTMLElement implements IGirafePanel {
6
8
  protected templateUrl: string | null;
7
9
  protected styleUrls: string[] | null;
@@ -9,55 +11,69 @@ export default class EditComponent extends GirafeHTMLElement implements IGirafeP
9
11
  isPanelVisible: boolean;
10
12
  panelTitle: string;
11
13
  panelTogglePath: string;
12
- editableLayersList: OapifLayer[];
13
- private get map();
14
- private draw?;
15
- private modify?;
16
- private select?;
17
- private drawingLayer?;
18
- private drawingSource?;
19
- private feature?;
20
- form: EditFromComponent;
21
- private featureSchema?;
14
+ private editComponentState;
15
+ private editableLayersFromServer;
16
+ editableLayersInTree: OapifLayer[];
22
17
  private layer?;
23
- private demoMapLayer?;
18
+ private feature?;
19
+ private treeLayer;
20
+ private previousTreeLayerVisibility;
21
+ private geometryEditingHelper;
22
+ form: EditFormComponent | undefined;
23
+ successMsg: string | undefined;
24
24
  constructor();
25
- render(): void;
25
+ protected render(): void;
26
+ protected refreshRender(): void;
27
+ togglePanel(visible: boolean): void;
26
28
  private renderComponent;
27
29
  private renderEmptyComponent;
28
- private loginStateChanged;
29
- onSelectLayer(evt: Event): Promise<void>;
30
+ private transitionTo;
31
+ canChangeSelectedLayer(): boolean;
32
+ actionButtonsVisible(): boolean;
33
+ geometrySectionVisible(): boolean;
34
+ attributeFormVisible(): boolean;
35
+ getActionBtnClass(btnName: string): string;
36
+ private collectEditableLayers;
37
+ private filterLayerListByLayersInTree;
38
+ getLayerSelectorPlaceholder(): string;
39
+ private onLayerSelectedInTree;
40
+ onLayerSelectedFromList(evt: Event): void;
41
+ onSelectLayer(editLayerName: string | undefined): Promise<void>;
42
+ setLayer(layer: OapifLayer | undefined): Promise<void>;
43
+ private confirmDiscardChanges;
44
+ private checkCrsCompatibilityWithMap;
45
+ onStartSelectingFeature(): void;
30
46
  onStartDrawing(): void;
31
47
  onCancelDrawing(): void;
32
48
  onDiscard(): void;
33
- private startDrawingMode;
34
- private startSelectionMode;
35
- onSave(): void;
49
+ onSave(): Promise<void>;
36
50
  onDelete(): Promise<void>;
37
51
  canDelete(): boolean;
38
- private resetComponent;
39
- private unselectLayer;
40
- private collectEditableLayers;
41
- private createMapInteractions;
42
- private removeMapInteractions;
43
52
  private onSelectFeature;
53
+ private canSelectFeatureInMap;
54
+ onFinishDrawingByBtnClick(): void;
55
+ onFinishDrawingByInteraction(feature: Feature): void;
56
+ finishDrawing(feature: Feature): void;
44
57
  private setEditFeature;
45
- private unsetEditFeature;
46
- isValidForm(): boolean;
58
+ isValidForm(): boolean | undefined;
59
+ featureIsModified(): boolean;
47
60
  private saveFeature;
48
61
  private deleteFeature;
49
- private createDemoMapLayer;
50
- private refreshDemoMapLayer;
51
- private removeDemoMapLayer;
52
- togglePanel(visible: boolean): void;
62
+ private getLayerInTree;
63
+ private activateLayerInTree;
64
+ private revertLayerInTree;
65
+ private refreshLayerInTree;
53
66
  getButtonIcon(): string;
54
- getButtonText(): string;
55
- displayDrawingCancelButton(): boolean;
56
- getFeatureId(): string;
57
- getFeatureProperties(): [string, import("../../models/serverogcapifeatures.js").OapifPropertySchema][];
67
+ getDrawingActionText(): string;
68
+ isMultiGeometry(): boolean;
69
+ isPoint(): boolean;
70
+ getFeatureId(): string | null;
71
+ canExecute(command: GgUserInteractionEvent): boolean;
72
+ private registerEvents;
58
73
  /**
59
- * POC: Add ogc servers to the state and preload them.
74
+ * This should be solved with a generic solution to control button visibility,
75
+ * see https://gitlab.com/geogirafe/gg-viewer/-/work_items/966
60
76
  */
61
- private loadDemoServerConfig;
77
+ private controlToolbarButtonVisibility;
62
78
  protected connectedCallback(): void;
63
79
  }