Class: ThemeService

ol.supermap.ThemeService

The ThemeService class.

new ol.supermap.ThemeService(url, options)

ThemeService.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.ThemeService(url,{
           projection:projection
     }).getThemeInfo(params,function(result){
          //doSomething
     });

Extends

Methods

getThemeInfo(params, callback)

ThemeService.js, line 30

Get information of thematic map.

Name Type Description
params SuperMap.ThemeParameters

The ThemeParameters class.

callback RequestCallback

The callback of result data returned by the server side.