Telogis.GeoBase.Widgets.Scale |
Widgets.Scale inherits from Widgets.MapControl.
A widget to show the distances represented by a map.
Type | Description |
---|---|
Errors.ConfigurationError | If no valid Widgets.ScaleSkin could be found. |
Name | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Widgets.Scale(config) | Arguments
|
Name | Description |
---|---|
getSize (Function callback) | Finds the dimensions of the scale control. Since these are only available once its skin has fully loaded, there may be a small delay before they can be returned. Hence, this procedure is asynchronous, and returns the size to a callback function. Arguments
|
setMap (Telogis.GeoBase.Map map) | Associates the Widgets.Scale with a certain Widgets.Map and updates it accordingly. After this call, the scale will be updated whenever the map is. Arguments
|
update (Number updateType) | Renders the scale to its container. This should be called whenever the scale's characteristics are changed or it needs to be redisplayed. Arguments
|