L.supermap.queryService(url, options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
L.supermap.queryService(url).queryByBounds(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.
-
queryByBounds(params, callback, resultFormat)
QueryService.js, line 41 -
Query map by bounds.
Name Type Default Description paramsL.supermap.QueryByBoundsParameters The QueryByBoundsParameters 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.
-
queryByDistance(params, callback, resultFormat)
QueryService.js, line 65 -
Query map by distance.
Name Type Default Description paramsL.supermap.QueryByDistanceParameters The QueryByDistanceParameters 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.
-
queryByGeometry(params, callback, resultFormat)
QueryService.js, line 113 -
Query map by geometry.
Name Type Default Description paramsL.supermap.QueryByGeometryParameters The QueryByGeometryParameters 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.
-
queryBySQL(params, callback, resultFormat)
QueryService.js, line 89 -
Query map by SQL.
Name Type Default Description paramsL.supermap.QueryBySQLParameters The QueryBySQLParameters 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.