1. MapCompare

分屏对比工具类,目前可直接支持分成4屏

1.1. new MapCompare()

1.2. 方法

1.2.1. mapCompare.bindMap(geomap1, geomap2, [geomap3], [geomap4])

将GeoMap实例对象的相机视角同步

Param Type Description
geomap1 GeoMap

GeoMap实例对象

geomap2 GeoMap

GeoMap实例对象

[geomap3] GeoMap

GeoMap实例对象,非必填

[geomap4] GeoMap

GeoMap实例对象,非必填

Example

var geomap1 = new BOSGeo.GeoMap('bosgeoContainer1');
var geomap2 = new BOSGeo.GeoMap('bosgeoContainer2');
var geomap3 = new BOSGeo.GeoMap('bosgeoContainer3');
var geomap4 = new BOSGeo.GeoMap('bosgeoContainer4');
BOSGeo.MapCompare.bindMap(geomap1, geomap2, geomap3, geomap4);

1.2.2. mapCompare.unbindMap(geomap, bindMaps)

geomap对象解绑

Param Type Description
geomap GeoMap

需要解绑的GeoMap实例对象

bindMaps Array.<GeoMap>

与之相关联的GeoMap实例对象的数组

Example

var geomap1 = new BOSGeo.GeoMap('bosgeoContainer1');
var geomap2 = new BOSGeo.GeoMap('bosgeoContainer2');
var geomap3 = new BOSGeo.GeoMap('bosgeoContainer3');
var geomap4 = new BOSGeo.GeoMap('bosgeoContainer4');
BOSGeo.MapCompare.bindMap(geomap1, geomap2, geomap3, geomap4);
BOSGeo.MapCompare.unbindMap(geomap1, [geomap2, geomap3, geomap4]);
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-05-18 18:07:58

results matching ""

    No results matching ""