1. RollerShutter

1.1. 初始化 new RollerShutter(options, geomap)

地图影像和模型卷帘对比类,包含左右卷帘和上下卷帘两种方式。卷帘视口1中的数据默认显示在左窗口或上窗口中,卷帘视口2中的数据默认显示在右窗口或下窗口中。

Param Type Default Description
[options] Object {}

配置选项

[options.direction] String 'horizontal'

卷帘分析的方向,左右卷帘为'horizontal',上下卷帘为'vertical'

[options.imagery] Object {}

卷帘分析的影像参数,port1对应的为视口1中显示的影像,port2对应的为视口2中显示的影像

[options.imagery.port1] Array.<BaseMap>

卷帘分析的影像参数,视口1中显示的影像

[options.imagery.port2] Array.<BaseMap>

卷帘分析的影像参数,视口2中显示的影像

[options.models] Object {}

卷帘分析的模型参数,port1对应的为视口1中显示的模型,port2对应为视口2中显示的模型

[options.models.port1] Array.<Model>

卷帘分析的模型参数,视口1中显示的模型

[options.models.port2] Array.<Model>

卷帘分析的模型参数,视口2中显示的模型

[geomap] GeoMap

GeoMap的实例对象,可默认不传

Example

let mapboxImagery = imageryLayer.add({
    name: 'MAPBOX_IMAGERY',
    map: BOSGeo.ImageryMapType.MAPBOX_IMAGERY,
});
let model = modelLayer.add({
    name: '建筑模型',
    url: 'https://bosgeo.boswinner.com/geoData/models/3DTiles/G1638934310983/tileset.json',
    featureType: BOSGeo.FeatureType.BIM,
    position: [113.107767, 23.02872, 10.78]
});
let shutter = new BOSGeo.RollerShutter({
    direction: 'horizontal',
    imagery: {
        port1: mapboxImagery,
    },
    models: {
        port1: [model],
    }
});
shutter.start();

1.2. 属性

属性名 Type Default Description
show Boolean true

卷帘对比的显隐状态

direction String 'horizontal'

卷帘对比的方向

imagery Object

卷帘对比的影像设置

models code>Object</code>

卷帘对比的模型设置

1.3. 方法

1.3.1. rollerShutter.start()

设置好参数后,启动卷帘分析

Example

let shutter = new BOSGeo.RollerShutter();
shutter.start()

1.3.2. rollerShutter.clear()

清除卷帘效果和参数

Example

let shutter = new BOSGeo.RollerShutter();
shutter.clear()
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-07-19 11:34:25

results matching ""

    No results matching ""