Class GSZoomControl
Extends GSControl.
Large zoom control provides a slider as well as controls for discrete zoom increments.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
GSZoomControl(labels)
Creates a new
GSZoomControl |
- Properties borrowed from class GSControl:
- parentPositioned
| Method Attributes | Method Name and Description |
|---|---|
|
Returns the height of this control (in pixels)
|
|
|
getWidth()
Returns the width of this control (in pixels)
|
|
|
refresh()
Synchronizes the zoom control state with the active map tile layer
|
- Methods borrowed from class GSControl:
- getDefaultPosition, getOrientation, getPosition, hide, remove, render, show
Class Detail
GSZoomControl(labels)
Creates a new
GSZoomControl
var labels = [{level: 8, value: 'Region'}, {level: 14, value: 'Suburb'}, {level: 16, value: 'Street'}];
- Parameters:
- {Array} labels
- an array of label objects specifying text labels to display for a given zoom label. An example array could be:
Method Detail
{int}
getHeight()
Returns the height of this control (in pixels)
- Returns:
- {int} the control height
{int}
getWidth()
Returns the width of this control (in pixels)
- Returns:
- {int} the control width
refresh()
Synchronizes the zoom control state with the active map tile layer