diff --git a/src/components.d.ts b/src/components.d.ts index 70d97a8..ec8dc7d 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -30,6 +30,7 @@ declare module 'vue' { DsfrSideMenu: typeof import('@gouvminint/vue-dsfr')['DsfrSideMenu'] DsfrTabContent: typeof import('@gouvminint/vue-dsfr')['DsfrTabContent'] DsfrTabs: typeof import('@gouvminint/vue-dsfr')['DsfrTabs'] + ElevationPath: typeof import('./components/carte/control/ElevationPath.vue')['default'] FullScreen: typeof import('./components/carte/control/FullScreen.vue')['default'] GetFeatureInfo: typeof import('./components/carte/control/GetFeatureInfo.vue')['default'] Isocurve: typeof import('./components/carte/control/Isocurve.vue')['default'] diff --git a/src/components/carte/Controls.vue b/src/components/carte/Controls.vue index 7f355b5..ab306cf 100644 --- a/src/components/carte/Controls.vue +++ b/src/components/carte/Controls.vue @@ -24,6 +24,7 @@ import MeasureLength from './control/MeasureLength.vue' import MeasureArea from './control/MeasureArea.vue' import MeasureAzimuth from './control/MeasureAzimuth.vue' import MousePosition from './control/MousePosition.vue' +import ElevationPath from './control/ElevationPath.vue' import Territories from './control/Territories.vue'; import GetFeatureInfo from './control/GetFeatureInfo.vue' import LayerImport from './control/LayerImport.vue' @@ -152,6 +153,9 @@ const measureAreaOptions = { const measureAzimuthOptions = { position: 'top-left' } +const elevationPathOptions = { + position: 'bottom-left' +} const layerImportOptions = { position: 'bottom-left' @@ -408,11 +412,17 @@ const mousePositionOptions = { :analytic="useControls.MousePosition.analytic" :mouse-position-options="mousePositionOptions" /> + diff --git a/src/components/carte/control/ElevationPath.vue b/src/components/carte/control/ElevationPath.vue new file mode 100644 index 0000000..fd774e4 --- /dev/null +++ b/src/components/carte/control/ElevationPath.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/src/components/carte/control/Share.vue b/src/components/carte/control/Share.vue index 21c39fe..4aac1eb 100644 --- a/src/components/carte/control/Share.vue +++ b/src/components/carte/control/Share.vue @@ -178,7 +178,7 @@ onBeforeMount(() => {