Module: ol/control/ZoomSlider

ol/control/ZoomSlider


Classes

ZoomSlider

Members

Direction{number}

The enum for available directions.

Properties:
Name Type Default Description
VERTICAL number 0
HORIZONTAL number 1

Methods

module:ol/control/ZoomSlider.render(mapEvent)

control/ZoomSlider.js, line 370

Update the zoomslider element.

This:
Name Type Description
mapEvent module:ol/MapEvent~MapEvent

Map event.

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
className string <optional>
'ol-zoomslider'

CSS class name.

duration number <optional>
200

Animation duration in milliseconds.

render function <optional>

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