L.supermap.chartService(url, options)
ChartService.js, line 7
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
L.supermap.chartService(url)
.queryChart(param,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.
-
getChartFeatureInfo(callback)
ChartService.js, line 57 -
Get information of chart feature.
Name Type Description callbackRequestCallback The callback of result data returned by the server side.
-
queryChart(params, callback, resultFormat)
ChartService.js, line 31 -
Query chart service.
Name Type Default Description paramsL.supermap.ChartQueryParameters The ChartQueryParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatL.supermap.DataFormat L.supermap.DataFormat.GEOJSON optional The format of result data.