Class GSZoomControl

Extends GSControl.

Large zoom control provides a slider as well as controls for discrete zoom increments.

Class Summary
Constructor Attributes Constructor Name and Description
 
GSZoomControl(labels)
Creates a new GSZoomControl
Properties borrowed from class GSControl:
parentPositioned
Method Summary
Method Attributes Method Name and Description
 
Returns the height of this control (in pixels)
 
Returns the width of this control (in pixels)
 
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

Documentation generated by JsDoc Toolkit 2.3.2 on Wed Mar 07 2012 11:47:30 GMT+1300 (NZDT)