Class: ZoomSlider

ol/control/ZoomSlider~ZoomSlider


import ZoomSlider from 'ol/control/ZoomSlider';

A slider type of control for zooming.

Example:

map.addControl(new ZoomSlider());

new ZoomSlider(opt_options)

control/ZoomSlider.js, line 46
Name Type Description
options

Zoom slider options.

Name Type Default Description
className string 'ol-zoomslider'

CSS class name.

duration number 200

Animation duration in milliseconds.

render function

Function called when the control should be re-rendered. This is called in a requestAnimationFrame callback.