new mapboxgl.supermap.ChartService(url, options)
ChartService.js, line 7
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new mapboxgl.supermap.ChartService(url)
.queryChart(param,function(result){
//doSomething
})
Extends
Events
-
inherited initialized
ServiceBase.js, line 23 -
Triggered after the constructor construct succeeds.
Properties:
Name Type Description this
Object This object.
Methods
-
getChartFeatureInfo(The)
ChartService.js, line 56 -
Get information of chart feature.
Name Type Description The
RequestCallback callback of result data returned by the server side.
-
queryChart(params, callback, resultFormat)
ChartService.js, line 30 -
Query chart service.
Name Type Default Description params
SuperMap.ChartQueryParameters The ChartQueryParameters class.
callback
RequestCallback The callback of result data returned by the server side.
resultFormat
SuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data.