@vcmap/ui 6.0.0-rc.8 → 6.0.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.
- package/README.md +2 -0
- package/build/buildHelpers.js +1 -1
- package/build/commonViteConfig.js +7 -0
- package/config/aerowest.config.json +12 -2
- package/config/analysis.config.json +17 -0
- package/config/base.config.json +19 -5
- package/config/components-show-case.config.json +53 -0
- package/config/concepts-show-case.config.json +39 -0
- package/config/dev.config.json +164 -105
- package/config/dynamic-layer.config.json +32 -0
- package/config/hello-world.config.json +11 -0
- package/config/projects.config.json +9 -1
- package/config/solar.config.json +65 -0
- package/config/vectorTile.config.json +70 -0
- package/config/www.config.json +34 -13
- package/dist/assets/{cesium-2ec6aae0.js → cesium-00deba88.js} +4672 -4704
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core-6f2522e5.js → core-a599e8b6.js} +7932 -7342
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol-b0e134cb.js → ol-21bbc740.js} +12206 -11711
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-adeddc7d.css +1 -0
- package/dist/assets/{ui-bf3d1f84.js → ui-adeddc7d.js} +10415 -9588
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-99bf601c.css → vuetify-c0e02f11.css} +1 -1
- package/dist/assets/{vuetify-99bf601c.js → vuetify-c0e02f11.js} +5313 -5294
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +4 -0
- package/index.js +2 -0
- package/lib/olLib.js +6 -0
- package/package.json +12 -12
- package/plugins/@vcmap-show-case/README.md +15 -6
- package/plugins/@vcmap-show-case/category-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +23 -23
- package/plugins/@vcmap-show-case/category-tester/src/FoobarEditor.vue +2 -8
- package/plugins/@vcmap-show-case/collection-manager-example/package.json +1 -1
- package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +10 -8
- package/plugins/@vcmap-show-case/context-menu-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/extent-example/package.json +1 -1
- package/plugins/@vcmap-show-case/flight-component-example/package.json +1 -1
- package/plugins/@vcmap-show-case/form-inputs-example/package.json +1 -1
- package/plugins/@vcmap-show-case/hello-world/package.json +1 -1
- package/plugins/@vcmap-show-case/icons-example/package.json +1 -1
- package/plugins/@vcmap-show-case/notifier-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/panel-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/plugin-editors/package.json +1 -1
- package/plugins/@vcmap-show-case/plugin-editors/src/index.js +17 -6
- package/plugins/@vcmap-show-case/project-selector/package.json +1 -9
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +22 -31
- package/plugins/@vcmap-show-case/project-selector/src/ProjectSelectorComponent.vue +15 -23
- package/plugins/@vcmap-show-case/projection-example/README.md +3 -0
- package/plugins/@vcmap-show-case/projection-example/package.json +5 -0
- package/plugins/@vcmap-show-case/projection-example/src/ProjectionExample.vue +73 -0
- package/plugins/@vcmap-show-case/{table-example → projection-example}/src/index.js +22 -11
- package/plugins/@vcmap-show-case/search-example/package.json +1 -1
- package/plugins/@vcmap-show-case/simple-graph/package.json +1 -4
- package/plugins/@vcmap-show-case/style-input-example/package.json +1 -1
- package/plugins/@vcmap-show-case/switch-map-callback-example/README.md +2 -2
- package/plugins/@vcmap-show-case/switch-map-callback-example/package.json +2 -1
- package/plugins/@vcmap-show-case/switch-map-callback-example/src/index.js +4 -1
- package/plugins/@vcmap-show-case/theming-example/package.json +1 -1
- package/plugins/@vcmap-show-case/toolbox-example/package.json +1 -1
- package/plugins/@vcmap-show-case/vector-properties-example/package.json +1 -1
- package/plugins/@vcmap-show-case/viewpoint-component-example/package.json +1 -1
- package/plugins/@vcmap-show-case/window-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +1 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +5 -1
- package/plugins/@vcmap-show-case/wizard-example/package.json +1 -1
- package/plugins/package.json +23 -3
- package/src/actions/flightActions.js +40 -20
- package/src/actions/listActions.d.ts +1 -1
- package/src/actions/listActions.js +1 -1
- package/src/application/VcsApp.vue +3 -0
- package/src/application/VcsApp.vue.d.ts +15 -0
- package/src/application/VcsAttributions.vue +1 -1
- package/src/application/VcsAttributionsFooter.vue +1 -1
- package/src/application/VcsContainer.vue +0 -1
- package/src/application/VcsContainer.vue.d.ts +15 -0
- package/src/application/VcsObliqueFooter.vue +110 -0
- package/src/application/VcsObliqueFooter.vue.d.ts +4 -0
- package/src/application/VcsTextPageFooter.vue +1 -0
- package/src/application/attributionsHelper.js +10 -6
- package/src/components/buttons/VcsButton.vue +2 -2
- package/src/components/buttons/VcsButton.vue.d.ts +1 -1
- package/src/components/buttons/VcsFormButton.vue +2 -2
- package/src/components/buttons/VcsFormButton.vue.d.ts +1 -1
- package/src/components/buttons/VcsToolButton.vue +2 -2
- package/src/components/buttons/VcsToolButton.vue.d.ts +1 -1
- package/src/components/composables.d.ts +2 -2
- package/src/components/composables.js +3 -5
- package/src/components/flight/VcsFlightPlayer.vue +26 -20
- package/src/components/form-inputs-controls/VcsCheckbox.vue +11 -5
- package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +10 -1
- package/src/components/form-inputs-controls/VcsDatePicker.vue +23 -3
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsFileInput.vue +3 -3
- package/src/components/form-inputs-controls/VcsFileInput.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsLabel.vue +10 -1
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +9 -0
- package/src/components/form-inputs-controls/VcsRadio.vue +4 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +2 -2
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +3 -3
- package/src/components/form-inputs-controls/VcsSlider.vue +2 -2
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsTextArea.vue +2 -2
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsTextField.vue +3 -3
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsWizard.vue +2 -2
- package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsWizardStep.vue +2 -2
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +3 -3
- package/src/components/import/VcsImportComponent.vue +3 -3
- package/src/components/lists/VcsActionList.vue +1 -1
- package/src/components/lists/VcsList.vue +56 -39
- package/src/components/lists/VcsListItemComponent.vue +14 -12
- package/src/components/lists/VcsListItemComponent.vue.d.ts +5 -28
- package/src/components/lists/VcsTreeview.vue +4 -2
- package/src/components/lists/VcsTreeview.vue.d.ts +1 -1
- package/src/components/notification/VcsHelp.vue +0 -1
- package/src/components/notification/VcsHelpTooltip.vue +48 -0
- package/src/components/notification/VcsHelpTooltip.vue.d.ts +25 -0
- package/src/components/projection/VcsProjection.vue +329 -0
- package/src/components/projection/VcsProjection.vue.d.ts +7 -0
- package/src/components/section/VcsFormSection.vue +0 -1
- package/src/components/section/VcsFormSection.vue.d.ts +1 -1
- package/src/components/tables/VcsDataTable.vue +15 -4
- package/src/components/tables/VcsDataTable.vue.d.ts +13 -2
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +17 -1
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +10 -1
- package/src/components/vector-properties/VcsFeatureTransforms.vue +39 -5
- package/src/components/vector-properties/VcsFeatureTransforms.vue.d.ts +2 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +44 -24
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +27 -2
- package/src/components/viewpoint/VcsViewpointComponent.vue +6 -6
- package/src/contentTree/contentTreeCollection.js +12 -1
- package/src/contentTree/obliqueCollectionContentTreeItem.js +6 -1
- package/src/featureInfo/abstractFeatureInfoView.d.ts +9 -0
- package/src/featureInfo/abstractFeatureInfoView.js +20 -3
- package/src/i18n/de.d.ts +93 -39
- package/src/i18n/de.js +68 -22
- package/src/i18n/en.d.ts +93 -39
- package/src/i18n/en.js +64 -18
- package/src/legend/StyleLegendItem.vue +1 -5
- package/src/legend/VcsLegend.vue +9 -10
- package/src/legend/VcsLegend.vue.d.ts +1 -1
- package/src/legend/legendHelper.js +6 -1
- package/src/manager/collectionManager/collectionComponentClass.js +9 -5
- package/src/manager/collectionManager/editorCollectionComponentClass.js +5 -3
- package/src/manager/toolbox/GroupToolboxComponent.vue +6 -1
- package/src/manager/toolbox/SelectToolboxComponent.vue +6 -2
- package/src/manager/toolbox/ToolboxManagerComponent.vue +7 -2
- package/src/manager/window/WindowComponentHeader.vue +1 -1
- package/src/manager/window/windowManager.d.ts +59 -3
- package/src/manager/window/windowManager.js +23 -2
- package/src/navigation/MapNavCompass.vue +166 -140
- package/src/navigation/MapNavCompass.vue.d.ts +3 -1
- package/src/navigation/MapNavigation.vue +22 -5
- package/src/navigation/VcsCompass.vue +2 -1
- package/src/navigation/overviewMap.js +4 -1
- package/src/obliqueFallbackWarnings.d.ts +5 -0
- package/src/obliqueFallbackWarnings.js +54 -0
- package/src/styles/main.scss +2 -2
- package/src/uiConfig.d.ts +30 -0
- package/src/uiConfig.js +3 -0
- package/src/vcsUiApp.d.ts +37 -10
- package/src/vcsUiApp.js +4 -0
- package/src/vuePlugins/i18n.js +1 -0
- package/src/vuePlugins/vuetify.js +2 -0
- package/dist/assets/ui-bf3d1f84.css +0 -1
- package/plugins/@vcmap-show-case/buttons-example/README.md +0 -4
- package/plugins/@vcmap-show-case/buttons-example/package.json +0 -5
- package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +0 -281
- package/plugins/@vcmap-show-case/buttons-example/src/index.js +0 -51
- package/plugins/@vcmap-show-case/config-editor/README.md +0 -3
- package/plugins/@vcmap-show-case/config-editor/package.json +0 -5
- package/plugins/@vcmap-show-case/config-editor/src/ConfigEditor.vue +0 -62
- package/plugins/@vcmap-show-case/config-editor/src/index.js +0 -49
- package/plugins/@vcmap-show-case/list-example/README.md +0 -3
- package/plugins/@vcmap-show-case/list-example/package.json +0 -5
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +0 -403
- package/plugins/@vcmap-show-case/list-example/src/index.js +0 -46
- package/plugins/@vcmap-show-case/table-example/README.md +0 -3
- package/plugins/@vcmap-show-case/table-example/package.json +0 -5
- package/plugins/@vcmap-show-case/table-example/src/DataTableExample.vue +0 -203
- package/plugins/@vcmap-show-case/textfields-example/README.md +0 -3
- package/plugins/@vcmap-show-case/textfields-example/package.json +0 -5
- package/plugins/@vcmap-show-case/textfields-example/src/TextfieldsExample.vue +0 -115
- package/plugins/@vcmap-show-case/textfields-example/src/index.js +0 -64
- /package/dist/assets/{vue-43880c5a.js → vue-8269279d.js} +0 -0
@@ -10,9 +10,17 @@
|
|
10
10
|
<template v-if="show3DProperties">
|
11
11
|
<v-row v-if="visibleProperties.has('altitudeMode')" no-gutters>
|
12
12
|
<v-col>
|
13
|
-
<VcsLabel :html-for="`${cid}-vp-altitude-mode`"
|
14
|
-
$t('components.vectorProperties.altitudeMode')
|
15
|
-
|
13
|
+
<VcsLabel :html-for="`${cid}-vp-altitude-mode`"
|
14
|
+
>{{ $t('components.vectorProperties.altitudeMode') }}
|
15
|
+
<template #help>
|
16
|
+
<ul>
|
17
|
+
<li v-for="mode in availableAltitudeModes" :key="mode.value">
|
18
|
+
{{ $t(mode.title) }}:
|
19
|
+
{{ $t(`components.vectorProperties.help.${mode.value}`) }}
|
20
|
+
</li>
|
21
|
+
</ul>
|
22
|
+
</template>
|
23
|
+
</VcsLabel>
|
16
24
|
</v-col>
|
17
25
|
<v-col>
|
18
26
|
<VcsSelect
|
@@ -564,10 +572,26 @@
|
|
564
572
|
type: Array,
|
565
573
|
default: () => vectorProperties,
|
566
574
|
},
|
575
|
+
altitudeModes: {
|
576
|
+
type: Array,
|
577
|
+
default: () => [
|
578
|
+
'absolute',
|
579
|
+
'relativeToGround',
|
580
|
+
'relativeToTerrain',
|
581
|
+
'relativeTo3DTiles',
|
582
|
+
'clampToGround',
|
583
|
+
'clampToTerrain',
|
584
|
+
'clampTo3DTiles',
|
585
|
+
],
|
586
|
+
},
|
567
587
|
show3DProperties: {
|
568
588
|
type: Boolean,
|
569
589
|
default: true,
|
570
590
|
},
|
591
|
+
is2DFeature: {
|
592
|
+
type: Boolean,
|
593
|
+
default: false,
|
594
|
+
},
|
571
595
|
showDividers: {
|
572
596
|
type: Boolean,
|
573
597
|
default: true,
|
@@ -597,7 +621,7 @@
|
|
597
621
|
});
|
598
622
|
|
599
623
|
const availableAltitudeModes = computed(() => {
|
600
|
-
|
624
|
+
return [
|
601
625
|
{
|
602
626
|
value: 'clampToGround',
|
603
627
|
title: 'components.vectorProperties.clampToGround',
|
@@ -613,27 +637,23 @@
|
|
613
637
|
{
|
614
638
|
value: 'absolute',
|
615
639
|
title: 'components.vectorProperties.absolute',
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
if (visibleProperties.value.has('heightAboveGround')) {
|
620
|
-
altitudeModes.push(
|
621
|
-
{
|
622
|
-
value: 'relativeToGround',
|
623
|
-
title: 'components.vectorProperties.relativeToGround',
|
624
|
-
},
|
625
|
-
{
|
626
|
-
value: 'relativeToTerrain',
|
627
|
-
title: 'components.vectorProperties.relativeToTerrain',
|
640
|
+
props: {
|
641
|
+
disabled: props.is2DFeature,
|
628
642
|
},
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
643
|
+
},
|
644
|
+
{
|
645
|
+
value: 'relativeToGround',
|
646
|
+
title: 'components.vectorProperties.relativeToGround',
|
647
|
+
},
|
648
|
+
{
|
649
|
+
value: 'relativeToTerrain',
|
650
|
+
title: 'components.vectorProperties.relativeToTerrain',
|
651
|
+
},
|
652
|
+
{
|
653
|
+
value: 'relativeTo3DTiles',
|
654
|
+
title: 'components.vectorProperties.relativeTo3DTiles',
|
655
|
+
},
|
656
|
+
].filter((item) => props.altitudeModes.includes(item.value));
|
637
657
|
});
|
638
658
|
|
639
659
|
const availableClassificationTypes = [
|
@@ -20,10 +20,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
20
20
|
type: ArrayConstructor;
|
21
21
|
default: () => string[];
|
22
22
|
};
|
23
|
+
altitudeModes: {
|
24
|
+
type: ArrayConstructor;
|
25
|
+
default: () => string[];
|
26
|
+
};
|
23
27
|
show3DProperties: {
|
24
28
|
type: BooleanConstructor;
|
25
29
|
default: boolean;
|
26
30
|
};
|
31
|
+
is2DFeature: {
|
32
|
+
type: BooleanConstructor;
|
33
|
+
default: boolean;
|
34
|
+
};
|
27
35
|
showDividers: {
|
28
36
|
type: BooleanConstructor;
|
29
37
|
default: boolean;
|
@@ -226,10 +234,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
226
234
|
callback: () => void;
|
227
235
|
}[]>;
|
228
236
|
visibleProperties: import("vue").ComputedRef<Set<unknown>>;
|
229
|
-
availableAltitudeModes: import("vue").ComputedRef<{
|
237
|
+
availableAltitudeModes: import("vue").ComputedRef<({
|
230
238
|
value: string;
|
231
239
|
title: string;
|
232
|
-
|
240
|
+
props?: undefined;
|
241
|
+
} | {
|
242
|
+
value: string;
|
243
|
+
title: string;
|
244
|
+
props: {
|
245
|
+
disabled: boolean;
|
246
|
+
};
|
247
|
+
})[]>;
|
233
248
|
availableClassificationTypes: {
|
234
249
|
value: string;
|
235
250
|
title: string;
|
@@ -258,10 +273,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
258
273
|
type: ArrayConstructor;
|
259
274
|
default: () => string[];
|
260
275
|
};
|
276
|
+
altitudeModes: {
|
277
|
+
type: ArrayConstructor;
|
278
|
+
default: () => string[];
|
279
|
+
};
|
261
280
|
show3DProperties: {
|
262
281
|
type: BooleanConstructor;
|
263
282
|
default: boolean;
|
264
283
|
};
|
284
|
+
is2DFeature: {
|
285
|
+
type: BooleanConstructor;
|
286
|
+
default: boolean;
|
287
|
+
};
|
265
288
|
showDividers: {
|
266
289
|
type: BooleanConstructor;
|
267
290
|
default: boolean;
|
@@ -285,7 +308,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
285
308
|
properties: unknown[];
|
286
309
|
expandable: boolean;
|
287
310
|
startOpen: boolean;
|
311
|
+
altitudeModes: unknown[];
|
288
312
|
show3DProperties: boolean;
|
313
|
+
is2DFeature: boolean;
|
289
314
|
showDividers: boolean;
|
290
315
|
showReset: boolean;
|
291
316
|
}, {}>;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<v-container class="py-0 px-1">
|
10
10
|
<v-row no-gutters v-if="!hideName">
|
11
11
|
<v-col cols="6">
|
12
|
-
<VcsLabel :html-for="`${cid}-name`"
|
12
|
+
<VcsLabel :html-for="`${cid}-name`" required>
|
13
13
|
{{ $t('components.viewpoint.name') }}
|
14
14
|
</VcsLabel>
|
15
15
|
</v-col>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
</v-row>
|
25
25
|
<v-row no-gutters v-if="!hideTitle">
|
26
26
|
<v-col cols="6">
|
27
|
-
<VcsLabel :html-for="`${cid}-title`"
|
27
|
+
<VcsLabel :html-for="`${cid}-title`">
|
28
28
|
{{ $t('components.viewpoint.title') }}
|
29
29
|
</VcsLabel>
|
30
30
|
</v-col>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
<template v-if="!isCesiumMap">
|
70
70
|
<v-row no-gutters>
|
71
71
|
<v-col cols="6">
|
72
|
-
<VcsLabel html-for="groundPosition"
|
72
|
+
<VcsLabel html-for="groundPosition">
|
73
73
|
{{ $t('components.viewpoint.groundPosition') }}
|
74
74
|
</VcsLabel>
|
75
75
|
</v-col>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<template v-else>
|
86
86
|
<v-row no-gutters>
|
87
87
|
<v-col cols="6">
|
88
|
-
<VcsLabel html-for="cameraPosition"
|
88
|
+
<VcsLabel html-for="cameraPosition">
|
89
89
|
{{ $t('components.viewpoint.cameraPosition') }}
|
90
90
|
</VcsLabel>
|
91
91
|
</v-col>
|
@@ -100,7 +100,7 @@
|
|
100
100
|
<template v-if="!isCesiumMap">
|
101
101
|
<v-row no-gutters>
|
102
102
|
<v-col>
|
103
|
-
<VcsLabel :html-for="`${cid}-distance`"
|
103
|
+
<VcsLabel :html-for="`${cid}-distance`">
|
104
104
|
{{ $t('components.viewpoint.distance') }}
|
105
105
|
</VcsLabel>
|
106
106
|
</v-col>
|
@@ -127,7 +127,7 @@
|
|
127
127
|
<div v-for="key in ['heading', 'pitch', 'roll']" :key="key">
|
128
128
|
<v-row no-gutters>
|
129
129
|
<v-col cols="9">
|
130
|
-
<VcsLabel :html-for="`${cid}-${key}`"
|
130
|
+
<VcsLabel :html-for="`${cid}-${key}`">
|
131
131
|
{{ $st(`components.viewpoint.${key}`) }}
|
132
132
|
</VcsLabel>
|
133
133
|
</v-col>
|
@@ -69,6 +69,12 @@ class ContentTreeCollection extends IndexedCollection {
|
|
69
69
|
this._subTreeListeners.delete(subTree.name);
|
70
70
|
}
|
71
71
|
});
|
72
|
+
if (this._app.uiConfig.getByKey('contentTreeActiveOnStartup')?.value) {
|
73
|
+
const action = this._app.navbarManager.get('Content')?.action;
|
74
|
+
if (action && !action.active) {
|
75
|
+
action.callback();
|
76
|
+
}
|
77
|
+
}
|
72
78
|
};
|
73
79
|
|
74
80
|
/**
|
@@ -181,7 +187,12 @@ class ContentTreeCollection extends IndexedCollection {
|
|
181
187
|
app.windowManager,
|
182
188
|
vcsAppSymbol,
|
183
189
|
);
|
184
|
-
|
190
|
+
if (
|
191
|
+
id === 'Content' &&
|
192
|
+
this._app.uiConfig.getByKey('contentTreeActiveOnStartup')?.value
|
193
|
+
) {
|
194
|
+
action.callback();
|
195
|
+
}
|
185
196
|
this._app.navbarManager.add(
|
186
197
|
{ id, action, weight: subTreeViewItem[subTreeItemWeight] },
|
187
198
|
vcsAppSymbol,
|
@@ -151,7 +151,12 @@ class ObliqueCollectionContentTreeItem extends VcsObjectContentTreeItem {
|
|
151
151
|
if (this.state === StateActionState.INACTIVE) {
|
152
152
|
this.state = StateActionState.LOADING;
|
153
153
|
await map.setCollection(this._collection, vp);
|
154
|
-
|
154
|
+
if (map.collection === this._collection) {
|
155
|
+
executeCallbacks(this._app, this._onActivate);
|
156
|
+
} else {
|
157
|
+
// failed to activate collection
|
158
|
+
this.state = StateActionState.INACTIVE;
|
159
|
+
}
|
155
160
|
} else if (this.state === StateActionState.ACTIVE) {
|
156
161
|
this.state = StateActionState.INACTIVE;
|
157
162
|
await map.setCollection(defaultCollection, vp);
|
@@ -75,6 +75,15 @@ export function applyAttributeFilter(attributes: {
|
|
75
75
|
export function applyOlcsAttributeFilter(attributes: {
|
76
76
|
[x: string]: unknown;
|
77
77
|
}, keys?: Array<string>): Object;
|
78
|
+
/**
|
79
|
+
* Filters all __ attributes (from vc-converter tilesets) not provided as keys
|
80
|
+
* @param {Object<string, unknown>} attributes
|
81
|
+
* @param {Array<string>} keys
|
82
|
+
* @returns {Object}
|
83
|
+
*/
|
84
|
+
export function applyDoubleUnderscoreFilter(attributes: {
|
85
|
+
[x: string]: unknown;
|
86
|
+
}, keys?: Array<string>): Object;
|
78
87
|
/**
|
79
88
|
* Filters attributes having an empty object as value
|
80
89
|
* @param {Object<string, unknown>} attributes
|
@@ -221,6 +221,21 @@ export function applyOlcsAttributeFilter(attributes, keys = []) {
|
|
221
221
|
}, {});
|
222
222
|
}
|
223
223
|
|
224
|
+
/**
|
225
|
+
* Filters all __ attributes (from vc-converter tilesets) not provided as keys
|
226
|
+
* @param {Object<string, unknown>} attributes
|
227
|
+
* @param {Array<string>} keys
|
228
|
+
* @returns {Object}
|
229
|
+
*/
|
230
|
+
export function applyDoubleUnderscoreFilter(attributes, keys = []) {
|
231
|
+
return Object.keys(attributes)
|
232
|
+
.filter((key) => keys.includes(key) || !/^__/.test(key))
|
233
|
+
.reduce((obj, key) => {
|
234
|
+
obj[key] = attributes[key];
|
235
|
+
return obj;
|
236
|
+
}, {});
|
237
|
+
}
|
238
|
+
|
224
239
|
/**
|
225
240
|
* Filters attributes having an empty object as value
|
226
241
|
* @param {Object<string, unknown>} attributes
|
@@ -348,7 +363,7 @@ class AbstractFeatureInfoView extends VcsObject {
|
|
348
363
|
*/
|
349
364
|
// eslint-disable-next-line class-methods-use-this
|
350
365
|
_getAttributesFromFeature(feature) {
|
351
|
-
return feature?.
|
366
|
+
return feature?.getAttributes() || {};
|
352
367
|
}
|
353
368
|
|
354
369
|
/**
|
@@ -371,6 +386,7 @@ class AbstractFeatureInfoView extends VcsObject {
|
|
371
386
|
applyKeyMapping(attributes, this.keyMapping);
|
372
387
|
}
|
373
388
|
attributes = applyOlcsAttributeFilter(attributes, this.attributeKeys);
|
389
|
+
attributes = applyDoubleUnderscoreFilter(attributes, this.attributeKeys);
|
374
390
|
return applyEmptyAttributesFilter(attributes);
|
375
391
|
}
|
376
392
|
|
@@ -430,15 +446,16 @@ class AbstractFeatureInfoView extends VcsObject {
|
|
430
446
|
* @returns {import("../manager/window/windowManager.js").WindowComponentOptions}
|
431
447
|
*/
|
432
448
|
getWindowComponentOptions(app, featureInfo, layer) {
|
449
|
+
const props = this.getProperties(featureInfo, layer);
|
433
450
|
return {
|
434
451
|
state: getWindowState(app, this.window.state, {
|
435
|
-
...
|
452
|
+
...props.attributes,
|
436
453
|
layerName: layer.properties?.title || layer.name,
|
437
454
|
}),
|
438
455
|
slot: this.window.slot ?? WindowSlot.DYNAMIC_RIGHT,
|
439
456
|
component: this.component,
|
440
457
|
position: this.window.position,
|
441
|
-
props
|
458
|
+
props,
|
442
459
|
};
|
443
460
|
}
|
444
461
|
|
package/src/i18n/de.d.ts
CHANGED
@@ -124,23 +124,27 @@ declare namespace messages {
|
|
124
124
|
namespace search {
|
125
125
|
let placeholder: string;
|
126
126
|
}
|
127
|
-
namespace
|
127
|
+
namespace helpAction {
|
128
128
|
let title_1: string;
|
129
129
|
export { title_1 as title };
|
130
130
|
}
|
131
|
-
namespace
|
131
|
+
namespace infoAction {
|
132
132
|
let title_2: string;
|
133
133
|
export { title_2 as title };
|
134
134
|
}
|
135
|
-
namespace
|
135
|
+
namespace viewpointAction {
|
136
136
|
let title_3: string;
|
137
137
|
export { title_3 as title };
|
138
138
|
}
|
139
|
-
namespace
|
140
|
-
export let name: string;
|
139
|
+
namespace styleAction {
|
141
140
|
let title_4: string;
|
142
141
|
export { title_4 as title };
|
143
142
|
}
|
143
|
+
namespace layerExtentAction {
|
144
|
+
export let name: string;
|
145
|
+
let title_5: string;
|
146
|
+
export { title_5 as title };
|
147
|
+
}
|
144
148
|
}
|
145
149
|
export namespace navigation {
|
146
150
|
let obliqueLeftTooltip: string;
|
@@ -150,16 +154,27 @@ declare namespace messages {
|
|
150
154
|
let pitchTooltip: string;
|
151
155
|
let overviewMapTooltip: string;
|
152
156
|
let homeButton: string;
|
157
|
+
namespace compass {
|
158
|
+
let alignEast: string;
|
159
|
+
let alignNorth: string;
|
160
|
+
let alignSouth: string;
|
161
|
+
let alignWest: string;
|
162
|
+
}
|
153
163
|
namespace locator {
|
154
164
|
let errorAccess: string;
|
155
165
|
let errorCurrentPosition: string;
|
156
166
|
let errorConnection: string;
|
157
167
|
let errorPosition: string;
|
158
168
|
}
|
169
|
+
namespace obliqueFallback {
|
170
|
+
export let message: string;
|
171
|
+
let title_6: string;
|
172
|
+
export { title_6 as title };
|
173
|
+
}
|
159
174
|
}
|
160
175
|
export namespace categoryManager {
|
161
|
-
let
|
162
|
-
export {
|
176
|
+
let title_7: string;
|
177
|
+
export { title_7 as title };
|
163
178
|
let tooltip_2: string;
|
164
179
|
export { tooltip_2 as tooltip };
|
165
180
|
}
|
@@ -236,8 +251,8 @@ declare namespace messages {
|
|
236
251
|
export let general: string;
|
237
252
|
let name_1: string;
|
238
253
|
export { name_1 as name };
|
239
|
-
let
|
240
|
-
export {
|
254
|
+
let title_8: string;
|
255
|
+
export { title_8 as title };
|
241
256
|
export let titlePlaceholder: string;
|
242
257
|
export let interpolation: string;
|
243
258
|
export let duration: string;
|
@@ -270,8 +285,8 @@ declare namespace messages {
|
|
270
285
|
export namespace viewpoint {
|
271
286
|
let name_4: string;
|
272
287
|
export { name_4 as name };
|
273
|
-
let
|
274
|
-
export {
|
288
|
+
let title_9: string;
|
289
|
+
export { title_9 as title };
|
275
290
|
let titlePlaceholder_1: string;
|
276
291
|
export { titlePlaceholder_1 as titlePlaceholder };
|
277
292
|
export let groundPosition: string;
|
@@ -296,8 +311,8 @@ declare namespace messages {
|
|
296
311
|
let outOfRange: string;
|
297
312
|
}
|
298
313
|
export namespace extent {
|
299
|
-
let
|
300
|
-
export {
|
314
|
+
let title_10: string;
|
315
|
+
export { title_10 as title };
|
301
316
|
export let projection: string;
|
302
317
|
export let min: string;
|
303
318
|
export let max: string;
|
@@ -311,6 +326,18 @@ declare namespace messages {
|
|
311
326
|
export let translate: string;
|
312
327
|
export let toggle: string;
|
313
328
|
}
|
329
|
+
export namespace projection_1 {
|
330
|
+
let title_11: string;
|
331
|
+
export { title_11 as title };
|
332
|
+
export let epsg: string;
|
333
|
+
export let proj4: string;
|
334
|
+
export let proj4Tooltip: string;
|
335
|
+
export let alias: string;
|
336
|
+
export let epsgIoRequestFailed: string;
|
337
|
+
export let invalidEpsg: string;
|
338
|
+
export let invalidProj4: string;
|
339
|
+
}
|
340
|
+
export { projection_1 as projection };
|
314
341
|
export namespace editor {
|
315
342
|
let translate_1: string;
|
316
343
|
export { translate_1 as translate };
|
@@ -363,6 +390,23 @@ declare namespace messages {
|
|
363
390
|
export let extrudedHeight: string;
|
364
391
|
export let skirt: string;
|
365
392
|
export let modelScale: string;
|
393
|
+
export namespace help_1 {
|
394
|
+
let clampToGround_1: string;
|
395
|
+
export { clampToGround_1 as clampToGround };
|
396
|
+
let clampToTerrain_1: string;
|
397
|
+
export { clampToTerrain_1 as clampToTerrain };
|
398
|
+
let clampTo3DTiles_1: string;
|
399
|
+
export { clampTo3DTiles_1 as clampTo3DTiles };
|
400
|
+
let absolute_1: string;
|
401
|
+
export { absolute_1 as absolute };
|
402
|
+
let relativeToGround_1: string;
|
403
|
+
export { relativeToGround_1 as relativeToGround };
|
404
|
+
let relativeToTerrain_1: string;
|
405
|
+
export { relativeToTerrain_1 as relativeToTerrain };
|
406
|
+
let relativeTo3DTiles_1: string;
|
407
|
+
export { relativeTo3DTiles_1 as relativeTo3DTiles };
|
408
|
+
}
|
409
|
+
export { help_1 as help };
|
366
410
|
}
|
367
411
|
export namespace validation {
|
368
412
|
let allowedRange: string;
|
@@ -371,14 +415,14 @@ declare namespace messages {
|
|
371
415
|
}
|
372
416
|
}
|
373
417
|
export namespace settings {
|
374
|
-
let
|
375
|
-
export {
|
418
|
+
let title_12: string;
|
419
|
+
export { title_12 as title };
|
376
420
|
let tooltip_3: string;
|
377
421
|
export { tooltip_3 as tooltip };
|
378
422
|
export let languageSelector: string;
|
379
423
|
export namespace displayQuality {
|
380
|
-
let
|
381
|
-
export {
|
424
|
+
let title_13: string;
|
425
|
+
export { title_13 as title };
|
382
426
|
export namespace level {
|
383
427
|
let low: string;
|
384
428
|
let medium: string;
|
@@ -386,26 +430,26 @@ declare namespace messages {
|
|
386
430
|
}
|
387
431
|
}
|
388
432
|
export namespace theme {
|
389
|
-
let
|
390
|
-
export {
|
433
|
+
let title_14: string;
|
434
|
+
export { title_14 as title };
|
391
435
|
export let dark: string;
|
392
436
|
export let light: string;
|
393
437
|
}
|
394
438
|
}
|
395
|
-
export namespace
|
396
|
-
let
|
397
|
-
export {
|
439
|
+
export namespace help_2 {
|
440
|
+
let title_15: string;
|
441
|
+
export { title_15 as title };
|
398
442
|
let tooltip_4: string;
|
399
443
|
export { tooltip_4 as tooltip };
|
400
444
|
}
|
401
|
-
export {
|
445
|
+
export { help_2 as help };
|
402
446
|
export namespace featureInfo {
|
403
447
|
let activateToolTitle: string;
|
404
448
|
let deactivateToolTitle: string;
|
405
449
|
}
|
406
450
|
export namespace legend {
|
407
|
-
let
|
408
|
-
export {
|
451
|
+
let title_16: string;
|
452
|
+
export { title_16 as title };
|
409
453
|
let tooltip_5: string;
|
410
454
|
export { tooltip_5 as tooltip };
|
411
455
|
let empty_2: string;
|
@@ -414,8 +458,8 @@ declare namespace messages {
|
|
414
458
|
export let defaultLabelText: string;
|
415
459
|
}
|
416
460
|
export namespace search_1 {
|
417
|
-
let
|
418
|
-
export {
|
461
|
+
let title_17: string;
|
462
|
+
export { title_17 as title };
|
419
463
|
let tooltip_6: string;
|
420
464
|
export { tooltip_6 as tooltip };
|
421
465
|
export let select: string;
|
@@ -426,38 +470,48 @@ declare namespace messages {
|
|
426
470
|
}
|
427
471
|
export { search_1 as search };
|
428
472
|
export namespace toolbox {
|
473
|
+
let title_18: string;
|
474
|
+
export { title_18 as title };
|
429
475
|
let flight_1: string;
|
430
476
|
export { flight_1 as flight };
|
431
477
|
export let miscellaneous: string;
|
432
478
|
}
|
433
479
|
export namespace footer {
|
434
|
-
let
|
435
|
-
export {
|
480
|
+
let title_19: string;
|
481
|
+
export { title_19 as title };
|
436
482
|
export namespace attributions {
|
437
|
-
let
|
438
|
-
export {
|
483
|
+
let title_20: string;
|
484
|
+
export { title_20 as title };
|
439
485
|
let tooltip_7: string;
|
440
486
|
export { tooltip_7 as tooltip };
|
441
487
|
let empty_3: string;
|
442
488
|
export { empty_3 as empty };
|
443
489
|
}
|
444
490
|
export namespace imprint {
|
445
|
-
let
|
446
|
-
export {
|
491
|
+
let title_21: string;
|
492
|
+
export { title_21 as title };
|
447
493
|
let tooltip_8: string;
|
448
494
|
export { tooltip_8 as tooltip };
|
449
495
|
}
|
450
496
|
export namespace dataProtection {
|
451
|
-
let
|
452
|
-
export {
|
497
|
+
let title_22: string;
|
498
|
+
export { title_22 as title };
|
453
499
|
let tooltip_9: string;
|
454
500
|
export { tooltip_9 as tooltip };
|
455
501
|
}
|
456
502
|
export namespace positionDisplay {
|
457
|
-
let
|
458
|
-
export {
|
459
|
-
let
|
460
|
-
export {
|
503
|
+
let title_23: string;
|
504
|
+
export { title_23 as title };
|
505
|
+
let projection_2: string;
|
506
|
+
export { projection_2 as projection };
|
507
|
+
}
|
508
|
+
export namespace oblique {
|
509
|
+
let template: string;
|
510
|
+
let north: string;
|
511
|
+
let east: string;
|
512
|
+
let south: string;
|
513
|
+
let west: string;
|
514
|
+
let nadir: string;
|
461
515
|
}
|
462
516
|
}
|
463
517
|
export namespace notification {
|