new ISSceneLayer(options)
document/layer/iserver/ISSceneLayer.js, line 11
支持如下方法:
[1、通过传入的json构造并返回一个新的图层对象][2、导出为json对象]
[3、克隆图层对象]
iServer场景图层,可以接入SuperMap iServer发布的三维服务
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
options |
Object |
构造参数。
|
Example
// ES5引入方式
const { ISSceneLayer } = zondy.layer
// ES6引入方式
import { ISSceneLayer } from "@mapgis/webclient-common"
const layer = new ISSceneLayer({
// 服务基地址
url: '服务基地址'
});
Extends
Members
-
allSublayersCollection.<ISSceneSubLayer> null
-
所有子图层
-
capabilitiesObject
-
图层支持能力。图层支持能力分为客户端能力和服务端能力,其中客户端能力包含cesium、leaflet、mapboxgl引擎能力。默认值客户端能力:仅cesium引擎支持图层加载,其他引擎不支持图层加载;默认图层服务端能力为空。
-
descriptionString
-
描述信息
-
extentExtent null
-
场景图层范围
-
positionObject
-
模型位置
-
sceneNameString
-
服务名
-
scenesArray.<ISScene>
-
场景集合
-
spatialReferenceSpatialReference
-
图层坐标系对象
-
typeLayerType
-
图层类型
-
urlString
-
服务基地址
-
versionString
-
服务版本号
Methods
-
ISSceneLayer.fromJSON(json){ISSceneLayer}
document/layer/iserver/ISSceneLayer.js, line 409 -
Name Type Description jsonObject json对象
Returns:
Type Description ISSceneLayer 图层对象 -
_createSublayerOptions(serverSublayerInfo, clientSublayerInfo, extendOptions){*}
document/layer/iserver/ISSceneLayer.js, line 339 -
Name Type Description serverSublayerInfo* clientSublayerInfo* extendOptionsObject 扩展参数
Returns:
Type Description * -
_getTypeByOriginLayerType(originLayerType){*}
document/layer/iserver/ISSceneLayer.js, line 371 -
根据原始图层类型获取子图层类型
Name Type Description originLayerType* Returns:
Type Description * -
clone(){ISSceneLayer}
document/layer/iserver/ISSceneLayer.js, line 419 -
Returns:
Type Description ISSceneLayer 克隆后的图层对象 -
findSublayerById(id){ISSceneSubLayer|null}
document/layer/iserver/ISSceneLayer.js, line 428 -
通过子图层ID来查询子图层
Name Type Description idString 子图层id
Returns:
Type Description ISSceneSubLayer | null 查询到的子图层 -
toJSON(){Object}
document/layer/iserver/ISSceneLayer.js, line 389 -
Returns:
Type Description Object json对象