ol-zoomslider-control
A Zoom Slider control for OpenLayers.
Usage
vue
<template>
<ol-map style="height: 400px" :controls="[]">
<ol-view :center="center" :zoom="zoom" :projection="projection" />
<ol-tile-layer>
<ol-source-osm />
</ol-tile-layer>
<ol-zoomslider-control />
</ol-map>
</template>
<script setup>
import { ref } from "vue";
const center = ref([40, 40]);
const projection = ref("EPSG:4326");
const zoom = ref(8);
</script>
Properties
className
- Type:
String
- Default:
ol-zoomslider
duration
- Type:
Number
- Default:
200
render
- Type:
Function