Class: MapService

ol.supermap.MapService

The MapService class.

new ol.supermap.MapService(url, options)

MapService.js, line 5
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.

crossOrigin boolean optional

Whether to allow cross-domain requests.

headers Object optional

Request header.

Example
new ol.supermap.MapService(url)
     .getMapInfo(function(result){
          //doSomething
     })

Extends

Methods

getMapInfo(callback){ol.supermap.MapService}

MapService.js, line 29

Get information of the map.

Name Type Description
callback RequestCallback

The callback of result data returned by the server side.

Returns:
Type Description
ol.supermap.MapService Get information of the service.

getTilesets(callback){ol.supermap.MapService}

MapService.js, line 50

Get information of tile sets.

Name Type Description
callback RequestCallback

The callback of result data returned by the server side.

Returns:
Type Description
ol.supermap.MapService Get information of the service.