Central Legato LayerCapabilities Service which provides some additional informations for a given layer.
| Inherits from: | Legato.Service |
| Legato. | Central Legato LayerCapabilities Service which provides some additional informations for a given layer. |
| Functions | |
| initialize | Basic ctor |
| getCapabilitites | Gets the capabiltites for given layer. |
| getLegendUrl | Tries to determine the legendUrl for given layer and executes the callBack method if found. |
getCapabilitites: function( args )
Gets the capabiltites for given layer. If capabilities could been loaded the onComplete callback method will be executed. All given args will been given back in callback method plus a new key entry ‘result’ where the capabilities result will be stored into.
//The followin example shows a valid result
onComplete(
result: {
capabilities: {
...
}
}
)
//This is an example if current service is busy
onComplete(
result: Legato.Service.BUSY
)| args | {Object} A hashmap which contains a layer and a callBack function |
getLegendUrl: function( args )
Tries to determine the legendUrl for given layer and executes the callBack method if found.
//The followin example shows a valid result
onComplete(
result: {
legendUrl: {
...
}
}
)
//This is an example if current service is busy
onComplete(
result: Legato.Service.BUSY
)| args | {Object} A hashmap which contains a layer and a callBack function |
Basic ctor
initialize : function( options )
Gets the capabiltites for given layer.
getCapabilitites: function( args )
Tries to determine the legendUrl for given layer and executes the callBack method if found.
getLegendUrl: function( args )