Maps API for JavaScript Developer's Guide

H.ui.ZoomControl.Options

Type Definition Summary

This typedef defines configuration (initialization) properties for a ZoomControl instance.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

zoomSpeed

The zoom speed in levels per millisecond, defaults to 0.004

alignment

The layout alignment which should be applied to the given UI control, defaults to H.ui.LayoutAlignment.RIGHT_MIDDLE

slider

A flag indicating whether to show the slider (true) or not (false, default)

sliderSnaps

A flag indicating whether the slider should snap to integer values or not, defaults to false. This option has effect only if slider is enabled.

Type Definition Description

This typedef defines configuration (initialization) properties for a ZoomControl instance.

Property Details

zoomSpeed: {number=} [optional]

The zoom speed in levels per millisecond, defaults to 0.004

alignment: {H.ui.LayoutAlignment=} [optional]

The layout alignment which should be applied to the given UI control, defaults to H.ui.LayoutAlignment.RIGHT_MIDDLE

slider: {boolean=} [optional]

A flag indicating whether to show the slider (true) or not (false, default)

sliderSnaps: {boolean=} [optional]

A flag indicating whether the slider should snap to integer values or not, defaults to false. This option has effect only if slider is enabled.