new ol.supermap.FeatureService(url, options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new ol.supermap.FeatureService(url)
.getFeaturesByIDs(param,function(result){
//doSomething
})
Extends
Methods
-
editFeatures(params, callback)
FeatureService.js, line 151 -
Edit features.
Name Type Description paramsSuperMap.EditFeaturesParameters The EditFeaturesParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
getFeaturesByBounds(params, callback, resultFormat)
FeatureService.js, line 62 -
Get features by bounds.
Name Type Default Description paramsSuperMap.GetFeaturesByBoundsParameters The GetFeaturesByBoundsParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data.
-
getFeaturesByBuffer(params, callback, resultFormat)
FeatureService.js, line 84 -
Get features by buffer.
Name Type Default Description paramsSuperMap.GetFeaturesByBufferParameters The GetFeaturesByBufferParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data.
-
getFeaturesByGeometry(params, callback, resultFormat)
FeatureService.js, line 129 -
Get features by geometry.
Name Type Default Description paramsSuperMap.GetFeaturesByGeometryParameters The GetFeaturesByGeometryParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data.
-
getFeaturesByIDs(params, callback, resultFormat)
FeatureService.js, line 39 -
Get features by IDs.
Name Type Default Description paramsSuperMap.GetFeaturesByIDsParameters The GetFeaturesByIDsParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data.
-
getFeaturesBySQL(params, callback, resultFormat)
FeatureService.js, line 106 -
Get features by SQL.
Name Type Default Description paramsSuperMap.GetFeaturesBySQLParameters The GetFeaturesBySQLParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data.