Type class
Creates the controls for the map to change the zoom level and pan around the map.
Example
var map = AmCharts.makeChart("mapdiv",{
...
"zoomControl": {
"zoomControlEnabled": true
}
});
Inheritance
ZoomControl does not extend any other symbol.
ZoomControl is not extended by any other symbol.
Properties
|
bottom # |
Type Distance from left side of map container to the zoom control. |
|---|---|
|
buttonBorderAlpha # |
Type Default Button border opacity. |
|
buttonBorderColor # |
Type Default Color of button borders. |
|
buttonBorderThickness # |
Type Default Button border thickness. |
|
buttonColorHover # |
Type Default Button roll-over color. |
|
buttonCornerRadius # |
Type Default Button corner radius. |
|
buttonFillAlpha # |
Type Default Button fill opacity. |
|
buttonFillColor # |
Type Default Button fill color. |
|
buttonIconAlpha # |
Type Default Opacity of button icons. |
|
buttonIconColor # |
Type Default Button icon color. |
|
buttonRollOverColor # |
Type Default Button roll-over color. |
|
buttonSize # |
Type Default Size of buttons. |
|
draggerAlpha # |
Type Default Opacity of a dragger. |
|
gridAlpha # |
Type Default Opacity of zoom-grid. |
|
gridBackgroundAlpha # |
Type Default Opacity of background under zoom-grid. |
|
gridBackgroundColor # |
Type Default Color of background under zoom-grid. |
|
gridColor # |
Type Default Grid color. |
|
gridHeight # |
Type Default Zoom grid height in pixels. |
|
homeButtonEnabled # |
Type Default Specifies if home button is visible or not. |
|
homeIconColor # |
Type Default Home icon color. |
|
homeIconFile # |
Type Default File 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 |
|
iconSize # |
Type Default Size of icons. You might need to change size of icon gif files if you change this property. |
|
left # |
Type Default Distance from left side of map container to the zoom control. |
|
maxZoomLevel # |
Type Default Max zoom level. |
|
minZoomLevel # |
Type Default Min zoom level. |
|
panControlEnabled # |
Type Default Specifies if pan control is enabled. |
|
panStepSize # |
Type Default Specifies by what part of a map container width/height the map will be moved when user clicks on pan arrows. |
|
right # |
Type Distance from right side of map container to the zoom control. |
|
roundButtons # |
Type Default Specifies if buttons should be round or not (rectangular). |
|
top # |
Type Default Distance from top of map container to the zoom control. |
|
zoomControlEnabled # |
Type Default Specifies if zoom control is enabled. |
|
zoomFactor # |
Type Default 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.