Information on this website refers to a deprecated product, and is provided only for historical reference. Please use the Version Switcher above to select an appropriate documentation website for the product you are using.

ZoomControl

Type class

Zoom control displays zoom and pan controls on the map.

Inheritance

ZoomControl does not extend any other symbol.

ZoomControl is not extended by any other symbol.

Properties

buttonBorderAlpha
#

Type number

Default 1

Button border opacity.

buttonBorderThickness
#

Type number

Default 1

Button border thickness.

buttonColorHover
#

Type string

Default #FF0000

Button roll-over color.

buttonCornerRadius
#

Type number

Default 0

Button corner radius.

buttonFillAlpha
#

Type number

Default 1

Button fill opacity.

buttonFillColor
#

Type string

Default #990000

Button fill color.

buttonIconColor
#

Type string

Default #FFFFFF

Button icon color.

buttonRollOverColor
#

Type string

Default #CC0000

Button roll-over color.

buttonSize
#

Type number

Default 18

Size of buttons.

gridAlpha
#

Type number

Default 1

Opacity of zoom-grid.

gridBackgroundAlpha
#

Type number

Default 0.15

Opacity of background under zoom-grid.

gridBackgroundColor
#

Type string

Default #000000

Color of background under zoom-grid.

gridColor
#

Type string

Default #FFFFFF

Grid color.

gridHeight
#

Type number

Default 150

Zoom grid color.

homeIconColor
#

Type string

Default #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 number

Default 10

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

maxZoomLevel
#

Type number

Default 64

Max zoom level.

minZoomLevel
#

Type number

Default 1

Min zoom level.

panControlEnabled
#

Type boolean

Default true

Specifies if pan control is enabled.

panStepSize
#

Type number

Default 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 number

Default 10

Distance from top of map container to the small map.

zoomControlEnabled
#

Type boolean

Default true

Specifies if zoom control is enabled.

zoomFactor
#

Type number

Default 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.

Adapters

ZoomControl does not have any adapters.