Class: queryService

L.supermap.queryService

The QueryService class.

L.supermap.queryService(url, options)

QueryService.js, line 19
Name Type Description
url string

The url of service.

options Object

The optional parameters.

Name Type Default Description
proxy string optional

Service agent address.

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online。

withCredentials boolean false optional

Request whether to carry a cookie.

Example
L.supermap.queryService(url).queryByBounds(param,function(result){
  //doSomething
})

Extends

Events

inherited destroy

ServiceBase.js, line 47

Triggered after the resource is successfully released.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

inherited initialized

ServiceBase.js, line 34

Triggered after the constructor is constructed successfully.

Properties:
Name Type Description
this L.supermap.ServiceBase

This object.

Methods

inherited destroy()

ServiceBase.js, line 42

Disposes the resource. The property that references resource is set to null.

queryByBounds(params, callback, resultFormat)

QueryService.js, line 39

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.

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.