new mapboxgl.supermap.MapService(url, options)
mapboxgl/services/MapService.js, line 9
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
地图服务地址。 |
||||||||||||||||||||
options |
Object |
地图服务信息相关参数。
|
Example
new mapboxgl.supermap.MapService(url)
.getMapInfo(function(result){
//doSomething
})
Extends
Events
-
inherited initialized
mapboxgl/services/ServiceBase.js, line 25 -
构造函数构造成功之后触发。
Properties:
Name Type Description this
Object this 对象。
Methods
-
getMapInfo(callback){mapboxgl.supermap.MapService}
mapboxgl/services/MapService.js, line 32 -
地图信息查询服务。
Name Type Description callback
RequestCallback 回调函数。
Returns:
Type Description mapboxgl.supermap.MapService 获取服务信息。 -
getTilesets(callback){mapboxgl.supermap.MapService}
mapboxgl/services/MapService.js, line 55 -
切片列表信息查询服务。
Name Type Description callback
RequestCallback 回调函数 。
Returns:
Type Description mapboxgl.supermap.MapService 获取服务信息。