Class: MapService

MapService

地图信息服务类。

new ol.supermap.MapService(url, options)

openlayers/services/MapService.js, line 7
Name Type Description
url string

地图服务地址。

options Object

参数。

Name Type Default Description
proxy string 可选

服务代理地址。

serverType SuperMap.ServerType SuperMap.ServerType.ISERVER 可选

服务来源 ISERVER|IPORTAL|ONLINE。

withCredentials boolean false 可选

请求是否携带 cookie。

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

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

Extends

Methods

getMapInfo(callback){ol.supermap.MapService}

openlayers/services/MapService.js, line 31

地图信息查询服务。

Name Type Description
callback RequestCallback

回调函数。

Returns:
Type Description
ol.supermap.MapService 获取服务信息。

getTilesets(callback){ol.supermap.MapService}

openlayers/services/MapService.js, line 54

切片列表信息查询服务。

Name Type Description
callback RequestCallback

回调函数。

Returns:
Type Description
ol.supermap.MapService 获取服务信息。