Class: MapService

MapService

地图信息服务类

new mapboxgl.supermap.MapService(url, options)

mapboxgl/services/MapService.js, line 5
Name Type Description
url string

地图服务地址

options Object

地图服务信息相关参数。如:
serverType - {string} 服务来源 iServer|iPortal|online。

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

Extends

  • mapboxgl.supermap.ServiceBase

Methods

getMapInfo(callback){mapboxgl.supermap.MapService}

mapboxgl/services/MapService.js, line 24

地图信息查询服务

Name Type Description
callback function

回调函数

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

getTilesets(callback){mapboxgl.supermap.MapService}

mapboxgl/services/MapService.js, line 43

切片列表信息查询服务

Name Type Description
callback function

回调函数

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