diff --git a/.vscode/settings.json b/.vscode/settings.json index 5a68e67..cadb689 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -29,6 +29,6 @@ ], "css.validate": false, "scss.validate": false, - "[vue]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, + "[vue]": { "editor.defaultFormatter": "stylelint.vscode-stylelint" }, "[css]": { "editor.defaultFormatter": "stylelint.vscode-stylelint" }, } \ No newline at end of file diff --git a/public/data/edito.json b/public/data/edito.json index 1ca6c6b..4fe8ea4 100644 --- a/public/data/edito.json +++ b/public/data/edito.json @@ -1,4 +1,13 @@ { + "contacts": { + "mail": "geoplateforme@ign.fr", + "networks": { + "facebook": "https://www.facebook.com/ignfr", + "twitter": "https://twitter.com/IGNFrance", + "linkedin": "https://fr.linkedin.com/company/ignfrance", + "instagram": "https://www.instagram.com/ign_france/?hl=fr" + } + }, "thematics": [ "Administratif", "Foncier", diff --git a/src/components.d.ts b/src/components.d.ts index db2ece4..5911502 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -22,10 +22,12 @@ declare module 'vue' { DsfrConsent: typeof import('@gouvminint/vue-dsfr')['DsfrConsent'] DsfrFooter: typeof import('@gouvminint/vue-dsfr')['DsfrFooter'] DsfrHeader: typeof import('@gouvminint/vue-dsfr')['DsfrHeader'] + DsfrInput: typeof import('@gouvminint/vue-dsfr')['DsfrInput'] DsfrModal: typeof import('@gouvminint/vue-dsfr')['DsfrModal'] DsfrNavigation: typeof import('@gouvminint/vue-dsfr')['DsfrNavigation'] DsfrRadioButtonSet: typeof import('@gouvminint/vue-dsfr')['DsfrRadioButtonSet'] DsfrSearchBar: typeof import('@gouvminint/vue-dsfr')['DsfrSearchBar'] + DsfrShare: typeof import('@gouvminint/vue-dsfr')['DsfrShare'] DsfrSideMenu: typeof import('@gouvminint/vue-dsfr')['DsfrSideMenu'] DsfrTabContent: typeof import('@gouvminint/vue-dsfr')['DsfrTabContent'] DsfrTabs: typeof import('@gouvminint/vue-dsfr')['DsfrTabs'] @@ -62,6 +64,7 @@ declare module 'vue' { RouterView: typeof import('vue-router')['RouterView'] ScaleLine: typeof import('./components/carte/control/ScaleLine.vue')['default'] SearchEngine: typeof import('./components/carte/control/SearchEngine.vue')['default'] + Share: typeof import('./components/carte/control/Share.vue')['default'] StoreData: typeof import('./components/StoreData.vue')['default'] View: typeof import('./components/carte/View.vue')['default'] Zoom: typeof import('./components/carte/control/Zoom.vue')['default'] diff --git a/src/components/carte/Controls.vue b/src/components/carte/Controls.vue index caaa8ec..df1bb3c 100644 --- a/src/components/carte/Controls.vue +++ b/src/components/carte/Controls.vue @@ -12,6 +12,8 @@ import MeasureLength from './control/MeasureLength.vue' import MeasureArea from './control/MeasureArea.vue' import MeasureAzimuth from './control/MeasureAzimuth.vue' +import Share from './control/Share.vue' + import { useControls } from '@/composables/controls' import { useLogger } from 'vue-logger-plugin' @@ -38,7 +40,10 @@ const props = defineProps({ const log = useLogger() log.debug(props.controlOptions); -// liste des options pour les contrôles +// liste des options pour les contrôles; + +const shareOptions = {}; + const layerSwitcherOptions = { options: { position : "top-right", @@ -118,6 +123,11 @@ const measureAzimuthOptions = { >>> sinon, visibility:false -->