Telogis.GeoBase.Widgets.MapControl |
Widgets.MapControl inherits from Widgets.AbstractWidget.
An abstract skinnable map widget.
Name | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Widgets.MapControl(config) | Arguments
|
Name | Description |
---|---|
destroy () | Frees resources used by the Widgets.MapControl, in the case that it is never to be used again. |
setMap (Telogis.GeoBase.Map map, Function addCallback, Function removeCallback) | Associates the Widgets.MapControl with a certain map and updates it accordingly. Arguments
|
setPosition (Point pos) | Sets the position of the widget within its containing map. Arguments
|
update (Number updateType) | Invalidates the Widgets.MapControl and re-renders it to its container. This is called automatically by the Widgets.Map that the control is listening to. Arguments
|
whenAdded (Function callback) | Executes a function immediately if the control has been added to a map. If it has not, the function is queued to be called when the control's Widgets.MapControl.Added event handler is triggered. Arguments
|
Name | Type | Description |
---|---|---|
Added | EventHandler | The event handler triggered when the map control is added to a map. |
map | Widgets.Map | The map associated with the widget. |
Removed | EventHandler | The event handler triggered when the map control is removed from a map. |