Summary

Classes


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.

Class Summary
Constructor Attributes Constructor Name and Description
 
Zoom Map Control
Method Summary
Method Attributes Method Name and Description
 
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.
To replace the images used in this control, place them in the correct (std / hires) pack in the resources directory. Read more about image packs in the docs index.
See:
deCarta.Mobile.MapControl
deCarta.Mobile.Map
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.

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Nov 04 2011 12:27:12 GMT-0700 (PDT)