new mapboxgl.supermap.QueryService(url, options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new mapboxgl.supermap.QueryService(url)
.queryByBounds(param,function(result){
//doSomething
})
Extends
Events
-
inherited initialized
ServiceBase.js, line 23 -
Triggered after the constructor construct succeeds.
Properties:
Name Type Description thisObject This object.
Methods
-
queryByBounds(params, callback, resultFormat)
QueryService.js, line 38 -
Query map by bounds.
Name Type Default Description paramsmapboxgl.supermapQueryByBoundsParameters The QueryByBoundsParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatmapboxgl.supermapDataFormat mapboxgl.supermapDataFormat.GEOJSON optional The format of result data.
-
queryByDistance(params, callback, resultFormat)
QueryService.js, line 63 -
Query map by distance.
Name Type Default Description paramsmapboxgl.supermapQueryByDistanceParameters The QueryByDistanceParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatmapboxgl.supermapDataFormat mapboxgl.supermapDataFormat.GEOJSON optional The format of result data.
-
queryByGeometry(params, callback, resultFormat)
QueryService.js, line 111 -
Query map by geometry.
Name Type Default Description paramsmapboxgl.supermapQueryByGeometryParameters The QueryByGeometryParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatmapboxgl.supermapDataFormat mapboxgl.supermapDataFormat.GEOJSON optional The format of result data.
-
queryBySQL(params, callback, resultFormat)
QueryService.js, line 87 -
Query map by SQL.
Name Type Default Description paramsmapboxgl.supermapQueryBySQLParameters The QueryBySQLParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatmapboxgl.supermapDataFormat mapboxgl.supermapDataFormat.GEOJSON optional The format of result data.