Skip to content

Commit 0c6b911

Browse files
authored
Merge pull request #443 from fschmenger/maintenance_v2.1.0
Maintenance v2.1.0
2 parents 409961a + 22bf15e commit 0c6b911

18 files changed

+227
-97
lines changed

app-starter/WguAppTemplate.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
<!-- layer loading indicator -->
4141
<wgu-maploading-status />
4242
<slot name="wgu-after-map" />
43-
<!-- Portal to overlay the map content from an application module -->
44-
<portal-target name="map-overlay" />
43+
<!-- Teleport to overlay the map content from an application module -->
44+
<div id="wgu-map-teleport" />
4545
<wgu-app-logo />
4646
<wgu-bglayerswitcher />
4747
<wgu-overviewmap v-if="overviewMapConfig" v-bind="overviewMapConfig"/>

docs/map-layer-configuration.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,19 @@ Additionally every configuration property of [`ol/style/Text`](https://openlayer
196196
"offsetY": 15,
197197
"align": "center"
198198
}
199-
}
199+
},
200+
"columnMapping": {
201+
"name": "Name",
202+
"email": "Email",
203+
"website": "Website"
204+
},
205+
"selectStyle": {
206+
"radius": 10,
207+
"strokeColor": "gray",
208+
"strokeWidth": 5,
209+
"fillColor": "rgb(255, 255, 0, 0.2)"
210+
},
211+
"doAppendSelectStyle": true
200212
}
201213

202214
```

docs/module-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following properties can be applied to all module types:
2020
|--------------------|:---------:|---------|
2121
| **target** | Where should the button to enable/disable the module be rendered. Valid options are `menu` or `toolbar` | `"target": "menu"` |
2222
| **win** | Value to mark if the module has a window as sub component and where to show the module UI elements. Valid options are `floating` and `sidebar`. If the value is omitted, then the module is not associated with a window. | `"win": "floating"` |
23-
| icon | Provide a customized icon for the module. | `"icon": "info"` |
23+
| icon | Provide a customized icon for the module. | `"icon": "md:info"` |
2424
| minimizable | Indicates whether the module window can be minimized. Only applies if a module window is present as indicated by the `win` parameter. | `"minimizable": true` |
2525
| closable | Indicates whether the module window can be closed by a "X" icon in the window's header bar. Only applies if a module window is present as indicated by the `win` parameter. | `"closable": false` |
2626
| backgroundImage | Optional background image for the window header. Only applies if a module window is present as indicated by the `win` parameter. | `"backgroundImage": "static/icon/myImage.png"}` |

docs/wegue-configuration.md

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,12 @@ In a Layer configuration a specific tilegrid can be refered to as follows, using
198198
{
199199
"type": "XYZ",
200200
"lid": "brtachtergrondkaart",
201-
"name": "WMTS - Topo Basemap - PDOK",
202201
"url": "https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:28992/{z}/{x}/{y}.png",
203202
"projection": "EPSG:28992",
204203
"tileGridRef": "dutch_rd",
205-
"visible": true
204+
"isBaseLayer": true,
205+
"visible": true,
206+
"crossOrigin": "anonymous"
206207
}
207208
```
208209

@@ -364,7 +365,7 @@ The `overviewMap` object supports the following properties:
364365

365366
| Property | Meaning | Example |
366367
|--------------------|:---------:|---------|
367-
| icon | Provide a customized map icon. Defaults to `zoom_out_map`. | `"icon": "zoom_out_map"` |
368+
| icon | Provide a customized map icon. Defaults to `md:zoom_out_map`. | `"icon": "md:zoom_out_map"` |
368369
| visible | Specifies whether the overviewMap appears in open or closed state on application start. Defaults to true. | `"visible": true` |
369370
| rotateWithView | Whether the control view should rotate with the main map view. Defaults to true. | `"rotateWithView": true` |
370371
| width | Width of the overview map panel in viewport coordinates. Defaults to 164px. | `"width": 164` |
@@ -430,7 +431,9 @@ Example configurations can be found in the `app-starter/static` directory. Below
430431
"lang": {
431432
"supported": {
432433
"en": "English",
433-
"de": "Deutsch"
434+
"de": "Deutsch",
435+
"pt": "Portugues",
436+
"fr": "Français"
434437
},
435438
"fallback": "en"
436439
},
@@ -574,8 +577,30 @@ Example configurations can be found in the `app-starter/static` directory. Below
574577
"visible": false,
575578
"displayInLayerList": true,
576579
"legend": true,
577-
"opacityControl": true
580+
"opacityControl": true,
581+
"crossOrigin": "anonymous"
578582
},
583+
584+
{
585+
"type": "TILEARCGIS",
586+
"lid": "test_arcgisrest",
587+
"format": "image/jpeg",
588+
"url": "https://cartografia.comune.padova.it/server/rest/services/topo/MapServer",
589+
"params": {
590+
"LAYERS":"show:3,16",
591+
"TRANSPARENT": true
592+
},
593+
"transparent": true,
594+
"projection": "EPSG:3003",
595+
"attribution": "Comune di padova",
596+
"isBaseLayer": false,
597+
"visible": false,
598+
"displayInLayerList": true,
599+
"legend": false,
600+
"opacityControl": true,
601+
"crossOrigin": "anonymous"
602+
},
603+
579604
{
580605
"type": "IMAGEWMS",
581606
"lid": "ahocevar-imagewms",
@@ -589,7 +614,8 @@ Example configurations can be found in the `app-starter/static` directory. Below
589614
"isBaseLayer": false,
590615
"visible": false,
591616
"displayInLayerList": true,
592-
"opacityControl": true
617+
"opacityControl": true,
618+
"crossOrigin": "anonymous"
593619
},
594620
{
595621
"type": "VECTORTILE",
@@ -629,13 +655,13 @@ Example configurations can be found in the `app-starter/static` directory. Below
629655
"wgu-layerlist": {
630656
"target": "menu",
631657
"win": "floating",
632-
"icon": "layers",
658+
"icon": "md:layers",
633659
"draggable": false
634660
},
635661
"wgu-measuretool": {
636662
"target": "menu",
637663
"win": "floating",
638-
"icon": "photo_size_select_small",
664+
"icon": "md:photo_size_select_small",
639665
"draggable": false,
640666
"strokeColor": "#c62828",
641667
"fillColor": "rgba(198,40,40,0.2)",
@@ -647,7 +673,7 @@ Example configurations can be found in the `app-starter/static` directory. Below
647673
"wgu-infoclick": {
648674
"target": "menu",
649675
"win": "floating",
650-
"icon": "info",
676+
"icon": "md:info",
651677
"draggable": false,
652678
"initPos": {
653679
"left": 8,
@@ -683,19 +709,19 @@ Example configurations can be found in the `app-starter/static` directory. Below
683709
"wgu-helpwin": {
684710
"target": "toolbar",
685711
"win": "floating",
686-
"icon": "help"
712+
"icon": "md:help"
687713
},
688714
"wgu-geolocator": {
689715
"target": "toolbar"
690716
},
691717
"wgu-themeswitcher": {
692718
"target": "toolbar",
693-
"icon": "dark_mode"
719+
"icon": "md:dark_mode"
694720
},
695721
"wgu-attributetable": {
696722
"target": "menu",
697723
"win": "floating",
698-
"icon": "table_chart",
724+
"icon": "md:table_chart",
699725
"syncTableMapSelection": true
700726
},
701727
"wgu-localeswitcher": {
@@ -704,7 +730,8 @@ Example configurations can be found in the `app-starter/static` directory. Below
704730
"sample-module": {
705731
"target": "toolbar",
706732
"win": "floating",
707-
"icon": "star"
733+
"icon": "md:star",
734+
"closable": false
708735
}
709736
}
710737
}

package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"canvas-record": "^3.1.0",
2626
"core-js": "^3.39.0",
2727
"ol": "10.2.1",
28-
"portal-vue": "^3.0.0",
2928
"proj4": "2.9.0",
3029
"tiny-emitter": "^2.1.0",
3130
"vue": "^3.5.13",

src/assets/css/wegue.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ html {
8888
overflow-y: hidden;
8989
}
9090

91+
/* Teleport to overlay the map content from an application module. */
92+
#wgu-map-teleport * {
93+
pointer-events: auto;
94+
overflow: visible;
95+
}
96+
9197
/*
9298
TODO Review ccs colorization.
9399
Used to force the on-primary color for solo fields (light theme only).
@@ -189,3 +195,54 @@ html {
189195
cursor: ew-resize;
190196
z-index: 10000;
191197
}
198+
199+
/* Map vuetify utility classes for on-* theme tokens to theme colors. */
200+
.bg-on-primary {
201+
background-color: rgb(var(--v-theme-on-primary)) !important;
202+
}
203+
.bg-on-secondary {
204+
background-color: rgb(var(--v-theme-on-secondary)) !important;
205+
}
206+
.bg-on-surface {
207+
background-color: rgb(var(--v-theme-on-surface)) !important;
208+
}
209+
.bg-on-background {
210+
background-color: rgb(var(--v-theme-on-background)) !important;
211+
}
212+
.bg-on-error {
213+
background-color: rgb(var(--v-theme-on-error)) !important;
214+
}
215+
.bg-on-warning {
216+
background-color: rgb(var(--v-theme-on-warning)) !important;
217+
}
218+
.bg-on-success {
219+
background-color: rgb(var(--v-theme-on-success)) !important;
220+
}
221+
.bg-on-info {
222+
background-color: rgb(var(--v-theme-on-info)) !important;
223+
}
224+
225+
.text-on-primary {
226+
color: rgb(var(--v-theme-on-primary)) !important;
227+
}
228+
.text-on-secondary {
229+
color: rgb(var(--v-theme-on-secondary)) !important;
230+
}
231+
.text-on-surface {
232+
color: rgb(var(--v-theme-on-surface)) !important;
233+
}
234+
.text-on-background {
235+
color: rgb(var(--v-theme-on-background)) !important;
236+
}
237+
.text-on-error {
238+
color: rgb(var(--v-theme-on-error)) !important;
239+
}
240+
.text-on-warning {
241+
color: rgb(var(--v-theme-on-warning)) !important;
242+
}
243+
.text-on-success {
244+
color: rgb(var(--v-theme-on-success)) !important;
245+
}
246+
.text-on-info {
247+
color: rgb(var(--v-theme-on-info)) !important;
248+
}

src/components/layerlist/LayerLegendImage.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ export default {
4848
* Returns a URL to the layers legend image.
4949
*/
5050
legendURL () {
51+
const legendUtil = new LayerLegend(this.$appConfig?.legend);
5152
const options = {
5253
language: this.$i18n.locale,
5354
...this.layer.get('legendOptions')
5455
};
55-
return LayerLegend.getUrl(
56+
return legendUtil.getUrl(
5657
this.layer, this.resolution, options, this.layer.get('legendUrl'));
5758
}
5859
}

src/components/localeswitcher/LocaleSwitcher.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<v-btn
99
v-bind="props"
1010
borderless
11-
dense
11+
density="default"
1212
:title="$t('wgu-localeswitcher.title')"
1313
class="ma-2 wgu-menu-button"
1414
icon

src/components/modulecore/ModuleCard.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
v-draggable-win="cardDraggable"
88
>
99
<v-img :src="backgroundImage">
10-
<v-toolbar v-bind="toolbarAttr" class="px-4 py-0">
10+
<v-toolbar v-bind="toolbarAttr" class="px-4 py-0 text-on-primary">
1111
<v-icon :icon="icon"></v-icon>
1212
<v-toolbar-title class="wgu-win-title" :text="$t(moduleName + '.title')"></v-toolbar-title>
1313
<v-spacer></v-spacer>
@@ -117,7 +117,6 @@ export default {
117117
toolbarAttr () {
118118
return this.backgroundImage
119119
? {
120-
dark: true,
121120
flat: true,
122121
color: 'transparent'
123122
}

0 commit comments

Comments
 (0)