ZoomControl
Type class
Creates the controls for the map to change the zoom level and pan around the map.
Example
```js var map = AmCharts.makeChart("mapdiv",{ ... "zoomControl": { "zoomControlEnabled": true } });```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
bottomType
numberDistance from left side of map container to the zoom control.
Type
numberDefault0.1Button border opacity.
Type
colorDefault#000000Color of button borders.
Type
numberDefault1Button border thickness.
Type
colorDefault#FF0000Button roll-over color.
Type
numberDefault2Button corner radius.
Type
numberDefault1Button fill opacity.
Type
colorDefault#FFFFFFButton fill color.
Type
numberDefault1Opacity of button icons.
Type
colorDefault#000000Button icon color.
Type
colorDefault#DADADAButton roll-over color.
Type
numberDefault31Size of buttons.
draggerAlphaType
numberDefault0Opacity of a dragger.
gridAlphaType
numberDefault0Opacity of zoom-grid.
gridBackgroundAlphaType
numberDefault0Opacity of background under zoom-grid.
gridBackgroundColorType
colorDefault#000000Color of background under zoom-grid.
gridColorType
colorDefault#000000Grid color.
gridHeightType
numberDefault5Zoom grid height in pixels.
homeButtonEnabledType
booleanDefaulttrueSpecifies if home button is visible or not.
homeIconColorType
colorDefault#FFFFFFHome icon color.
homeIconFileType
stringDefaulthomeIcon.gifFile name of home icon. You can also find homeIconWhite.gif in the images folder, or you can create your own image.
Important: This setting is ignored by default because Map uses SVG paths for all controls. To enable this feature set map's ZoomControl.svgIcons to
false.iconSizeType
numberDefault11Size of icons. You might need to change size of icon gif files if you change this property.
leftType
numberDefault10Distance from left side of map container to the zoom control.
maxZoomLevelType
numberDefault64Max zoom level.
minZoomLevelType
numberDefault1Min zoom level.
panControlEnabledType
booleanDefaultfalseSpecifies if pan control is enabled.
panStepSizeType
numberDefault0.1Specifies by what part of a map container width/height the map will be moved when user clicks on pan arrows.
rightType
numberDistance from right side of map container to the zoom control.
roundButtonsType
booleanDefaulttrueSpecifies if buttons should be round or not (rectangular).
topType
numberDefault10Distance from top of map container to the zoom control.
zoomControlEnabledType
booleanDefaulttrueSpecifies if zoom control is enabled.
zoomFactorType
numberDefault2zoomFactor 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.