L.supermap.featureService(url, options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
L.supermap.featureService(url)
.getFeaturesByIDs(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.
-
editFeatures(params, callback)
FeatureService.js, line 151 -
Edit features.
Name Type Description paramsL.supermap.EditFeaturesParameters The EditFeaturesParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
getFeaturesByBounds(params, callback, resultFormat)
FeatureService.js, line 63 -
Get features by bounds.
Name Type Default Description paramsL.supermap.GetFeaturesByBoundsParameters The GetFeaturesByBoundsParameters 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.
-
getFeaturesByBuffer(params, callback, resultFormat)
FeatureService.js, line 85 -
Get features by buffer.
Name Type Default Description paramsL.supermap.GetFeaturesByBufferParameters The GetFeaturesByBufferParameters 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
-
getFeaturesByGeometry(params, callback, resultFormat)
FeatureService.js, line 129 -
Get features by geometry.
Name Type Default Description paramsL.supermap.GetFeaturesByGeometryParameters The GetFeaturesByGeometryParameters 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.
-
getFeaturesByIDs(params, callback, resultFormat)
FeatureService.js, line 40 -
Get features by IDs.
Name Type Default Description paramsL.supermap.GetFeaturesByIDsParameters The GetFeaturesByIDsParameters 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.
-
getFeaturesBySQL(params, callback, resultFormat)
FeatureService.js, line 107 -
Get features by SQL.
Name Type Default Description paramsL.supermap.GetFeaturesBySQLParameters The GetFeaturesBySQLParameters 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.