L.supermap.layerInfoService(url, options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. The url to request map query service should be: http://{service URL}:{server port}/iserver/services/{map service name}/rest/maps/{map name}"; |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
L.supermap.layerInfoService(url).getLayersInfo(function(result){
//doSomething
})
Extends
Events
-
inherited destroy
ServiceBase.js, line 49 -
Triggered after the resource is successfully released.
Properties:
Name Type Description thisL.supermap.ServiceBase This object.
-
inherited initialized
ServiceBase.js, line 36 -
Triggered after the constructor is constructed successfully.
Properties:
Name Type Description thisL.supermap.ServiceBase This object.
Methods
-
inherited destroy()
ServiceBase.js, line 44 -
Disposes the resource. The property that references resource is set to null.
-
getLayerInfo(callback)
LayerInfoService.js, line 37 -
Get information of a layer.
Name Type Description callbackRequestCallback The callback of result data returned by the server side.
-
setLayerInfo(params, callback)
LayerInfoService.js, line 56 -
Set information of a layer. It is used to modify the sub layer of the temporary layer.
Name Type Description paramsL.supermap.SetLayerInfoParameters The SetLayerInfoParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
setLayersInfo(params, callback)
LayerInfoService.js, line 90 -
Set information of layers. It can create a new temporary layer and edit the current layer. When isTempLayers si false, it will create the new layer. When isTempLayers is true and resourceID is set, it will edit the temporary layer.
Name Type Description paramsL.supermap.SetLayersInfoParameters The SetLayersInfoParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
setLayerStatus(params, callback)
LayerInfoService.js, line 123 -
Sub layer display control service. It is used to pass the sub layer display control parameters to the server, and get the display state of layers returned from the server.
Name Type Description paramsL.supermap.SetLayerStatusParameters The SetLayerStatusParameters class.
callbackRequestCallback The callback of result data returned by the server side.