new ol.supermap.QueryService(url, options)
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new ol.supermap.QueryService(url)
.queryByBounds(param,function(result){
//doSomething
})
Extends
Methods
-
queryByBounds(params, callback, resultFormat)
QueryService.js, line 38 -
Query map by bounds.
Name Type Default Description params
SuperMap.QueryByBoundsParameters The QueryByBoundsParameters 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.
Returns:
ol.supermap.QueryService} -
queryByDistance(params, callback, resultFormat)
QueryService.js, line 63 -
Query map by distance.
Name Type Default Description params
SuperMap.QueryByDistanceParameters The QueryByDistanceParameters 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.
-
queryByGeometry(params, callback, resultFormat)
QueryService.js, line 111 -
Query map by geometry.
Name Type Default Description params
SuperMap.QueryByGeometryParameters The QueryByGeometryParameters 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.
-
queryBySQL(params, callback, resultFormat)
QueryService.js, line 87 -
Query map by SQL.
Name Type Default Description params
SuperMap.QueryBySQLParameters The QueryBySQLParameters 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.