Class: GridCellInfosService

mapboxgl.supermap.GridCellInfosService

The GridCellInfosService class.

new mapboxgl.supermap.GridCellInfosService(url, options)

GridCellInfosService.js, line 6
Name Type Description
url string

The url of service.The requested map service, the URL should be:
Http://{server address}: {service port number}/iserver/services/{map service name}/rest/maps/{map name}/tempLayersSet/{tempLayerID}/Rivers@World@@World".

options Object

The optional parameters.

Name Type Default Description
proxy string optional

Service agent address.

withCredentials boolean false optional

Request whether to carry a cookie.

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER optional

Type of server iServer|iPortal|online。

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

Example
new mapboxgl.supermap.GridCellInfosService(url)
 .getGridCellInfos(param,function(result){
    //doSomething
})

Extends

Events

inherited initialized

ServiceBase.js, line 23

Triggered after the constructor construct succeeds.

Properties:
Name Type Description
this Object

This object.

Methods

getGridCellInfos(params, callback)

GridCellInfosService.js, line 31
Name Type Description
params SuperMap.GetGridCellInfosParameters

The GetGridCellInfosParameters class.

callback RequestCallback

The callback of result data returned by the server side.