Class deCarta.Mobile.CopyrightControl
Add a copyright string to the map. This class inherits from deCarta.Mobile.MapControl.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Copyright Map Control
|
| Method Attributes | Method Name and Description |
|---|---|
|
render(container)
This render method implements the render method from the
deCarta.Mobile.MapControl base class.
|
Class Detail
deCarta.Mobile.CopyrightControl(opt)
Copyright Map Control
- Parameters:
- opt
- Options A list of options with which to initialize the CopyrightControl.
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)
Method Detail
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.