From dd016c0048e44fe364218bb3bf9707411893fb3e Mon Sep 17 00:00:00 2001 From: hcaillaud Date: Tue, 15 Oct 2024 16:03:31 +0200 Subject: [PATCH] =?UTF-8?q?:refacto:=20widget=20par=20d=C3=A9faut=20:=20se?= =?UTF-8?q?archengine=20et=20layswitcher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/carte/Controls.vue | 6 ++---- src/composables/controls.js | 9 +++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/carte/Controls.vue b/src/components/carte/Controls.vue index 6c15c0f8..4f6c4560 100644 --- a/src/components/carte/Controls.vue +++ b/src/components/carte/Controls.vue @@ -295,8 +295,7 @@ const mousePositionOptions = { :share-options="shareOptions" /> @@ -343,8 +342,7 @@ const mousePositionOptions = { :attributions-options="attributionsOptions" /> diff --git a/src/composables/controls.js b/src/composables/controls.js index 40b2d5d0..d3d08eb1 100644 --- a/src/composables/controls.js +++ b/src/composables/controls.js @@ -20,8 +20,8 @@ export const useControls = { }, SearchEngine: { id: 'SearchEngine', - active: true, - disable: false, + active: false, + disable: true, analytic: false }, ScaleLine: { @@ -32,8 +32,8 @@ export const useControls = { }, LayerSwitcher: { id: 'LayerSwitcher', - active: true, - disable: false, + active: false, + disable: true, analytic: true }, Legends: { @@ -270,4 +270,5 @@ export function useControlsMenuOptions() { disabled: useControls.Territories.disable } ].filter(opt => Object.keys(useControls).includes(opt.name)) +.filter(opt => opt.disabled === false) }