File tree Expand file tree Collapse file tree 3 files changed +35
-36
lines changed
src/components/mapControls Expand file tree Collapse file tree 3 files changed +35
-36
lines changed Original file line number Diff line number Diff line change 1+ <template lang="">
2+ <div v-if =" false" ></div >
3+ </template >
4+
5+ <script setup>
6+ import useControl from " @/composables/useControl" ;
7+ import ZoomSlider from " ol/control/ZoomSlider" ;
8+ import { useAttrs } from " vue" ;
9+
10+ const props = defineProps ({
11+ duration: {
12+ type: Number ,
13+ default: 200 ,
14+ },
15+ className: {
16+ type: String ,
17+ default: " ol-zoomslider" ,
18+ },
19+ render: {
20+ type: Function ,
21+ },
22+ });
23+
24+ const attrs = useAttrs ();
25+ const { control } = useControl (ZoomSlider, props, { attrs });
26+
27+ defineExpose ({
28+ control,
29+ });
30+ </script >
31+
32+ <style lang=""></style >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import OlToggleControl from "./OlToggleControl.vue";
1515import OlVideoRecorderControl from "./OlVideoRecorderControl.vue" ;
1616import OlZoneControl from "./OlZoneControl.vue" ;
1717import OlZoomControl from "./OlZoomControl.vue" ;
18- import ZoomSliderControl from "./ZoomSliderControl .vue" ;
18+ import OlZoomSliderControl from "./OlZoomSliderControl .vue" ;
1919import ZoomToExtentControl from "./ZoomToExtentControl.vue" ;
2020
2121function install ( app ) {
@@ -31,7 +31,7 @@ function install(app) {
3131 app . component ( "ol-overviewmap-control" , OlOverviewMapControl ) ;
3232 app . component ( "ol-scaleline-control" , OlScaleLineControl ) ;
3333 app . component ( "ol-zoom-control" , OlZoomControl ) ;
34- app . component ( ZoomSliderControl . name , ZoomSliderControl ) ;
34+ app . component ( "ol-zoomslider-control" , OlZoomSliderControl ) ;
3535 app . component ( ZoomToExtentControl . name , ZoomToExtentControl ) ;
3636 app . component ( "ol-rotate-control" , OlRotateControl ) ;
3737 app . component ( "ol-context-menu-control" , OlContextMenuControl ) ;
@@ -67,6 +67,6 @@ export {
6767 OlVideoRecorderControl ,
6868 OlZoneControl ,
6969 OlZoomControl ,
70- ZoomSliderControl ,
70+ OlZoomSliderControl ,
7171 ZoomToExtentControl ,
7272} ;
You can’t perform that action at this time.
0 commit comments