new mapboxgl.supermap.FieldService(url, options)
FieldService.js, line 7
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new mapboxgl.supermap.FieldService(url).getFields(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
-
getFields(params, callback)
FieldService.js, line 29 -
Field query service.
Name Type Description params
SuperMap.FieldParameters The parameter class of the field information query.
callback
RequestCallback The callback of result data returned by the server side.
-
getFieldStatisticsInfo(params, callback)
FieldService.js, line 52 -
Get information of field statistics.
Name Type Description params
SuperMap.FieldStatisticsParameters The FieldStatisticsParameters class.
callback
RequestCallback The callback of result data returned by the server side.