Skip to content

ZoomControl

Type class

Zoom control displays zoom and pan controls on the map.

Sources

This information about ZoomControl is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.

Inheritance

ZoomControl does not extend any other symbol.

ZoomControl is not extended by any other symbol.

Properties

buttonBorderAlpha

Type numberDefault 1

Button border opacity.

buttonBorderThickness

Type numberDefault 1

Button border thickness.

buttonColorHover

Type stringDefault #FF0000

Button roll-over color.

buttonCornerRadius

Type numberDefault 0

Button corner radius.

buttonFillAlpha

Type numberDefault 1

Button fill opacity.

buttonFillColor

Type stringDefault #990000

Button fill color.

buttonIconColor

Type stringDefault #FFFFFF

Button icon color.

buttonRollOverColor

Type stringDefault #CC0000

Button roll-over color.

buttonSize

Type numberDefault 18

Size of buttons.

gridAlpha

Type numberDefault 1

Opacity of zoom-grid.

gridBackgroundAlpha

Type numberDefault 0.15

Opacity of background under zoom-grid.

gridBackgroundColor

Type stringDefault #000000

Color of background under zoom-grid.

gridColor

Type stringDefault #FFFFFF

Grid color.

gridHeight

Type numberDefault 150

Zoom grid color.

homeIconColor

Type stringDefault #FFFFFF

Home icon color.

iconSize

Type number

Size of icons. You might need to change size of icon gif files if you change this property.

left

Type numberDefault 10

Distance from left side of map container to the small map.

maxZoomLevel

Type numberDefault 64

Max zoom level.

minZoomLevel

Type numberDefault 1

Min zoom level.

panControlEnabled

Type booleanDefault true

Specifies if pan control is enabled.

panStepSize

Type numberDefault 0.1

Specifies by what part of a map container width/height the map will be moved when user clicks on pan arrows.

top

Type numberDefault 10

Distance from top of map container to the small map.

zoomControlEnabled

Type booleanDefault true

Specifies if zoom control is enabled.

zoomFactor

Type numberDefault 2

zoomFactor is a number by which current scale will be multiplied when user clicks on zoom in button or divided when user clicks on zoom-out button.

Methods

ZoomControl does not have any methods.

Events

ZoomControl does not have any events.