new ol.supermap.LayerInfoService(url, options)
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. The url to request map query service should be: |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new ol.supermap.LayerInfoService(url).getLayersInfo(function(result){
//doSomething
})
Extends
Methods
-
getLayersInfo(callback)
LayerInfoService.js, line 34 -
Get information of a layer.
Name Type Description callback
RequestCallback The callback of result data returned by the server side.
-
setLayerInfo(params, callback)
LayerInfoService.js, line 53 -
Set information of a layer. It is used to modify the sub layer of the temporary layer.
Name Type Description params
SuperMap.SetLayerInfoParameters The SetLayerInfoParameters class.
callback
RequestCallback The callback of result data returned by the server side.
-
setLayersInfo(params, callback)
LayerInfoService.js, line 84 -
Set information of layers. It can create a new temporary layer and edit the current layer.
Name Type Description params
SuperMap.SetLayersInfoParameters he SetLayersInfoParameters class, including temporary layers.
callback
RequestCallback The callback of result data returned by the server side.
-
setLayerStatus(params, callback)
LayerInfoService.js, line 115 -
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 params
SuperMap.SetLayerStatusParameters The SetLayerStatusParameters class.
callback
RequestCallback The callback of result data returned by the server side.