Class deCarta.Mobile.ZoomControl
ZoomControl - Add a zoom control to the map to present the user with zoom in / zoom out buttons. This class inherits from deCarta.Mobile.MapControl.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Zoom Map Control
|
| Method Attributes | Method Name and Description |
|---|---|
|
position()
Overrides the deCarta.Mobile.MapControl:position() method
|
|
|
render(container)
This render method implements the render method from the
deCarta.Mobile.MapControl base class.
|
Class Detail
deCarta.Mobile.ZoomControl(opt)
Zoom Map Control
- Parameters:
- opt
- Options A list of options with which to initialize the ZoomControl.
Valid options are:
- (string) position: (Inherited from deCarta.Mobile.MapControl), which should be set to one of: 'topLeft', 'topRight', 'bottomLeft', 'bottomRight' (default='topLeft')
- (int) marginX: (Inherited from deCarta.Mobile.MapControl) margin from the edge of the map (left OR right) on the X coordinate, in pixels (default=10)
- (int) marginY: (Inherited from deCarta.Mobile.MapControl) margin from the edge of the map (top OR bottom) on the Y coordinate, in pixels (default=10)
- (bool) continuousZoom: in case of desktop style, zoom will be continuous if the zoom handle is dragged. Performance intensive. Use appropriately.
Method Detail
position()
Overrides the deCarta.Mobile.MapControl:position() method
render(container)
This render method implements the render method from the
deCarta.Mobile.MapControl base class.
It is responsible for rendering this control on the map,
and produces a single HTML Dom Element containing the whole
GUI for the control.
- Parameters:
- {string} container
- The DOM element within which the control is rendered.