MapCompare 地图卷帘
可用于对比不同图层的地图信息,通过滑动分界线直观查看前后内容差异。
<mapgis-map-compare></mapgis-map-compare>
基本用法
API
属性
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| mode | 卷帘模式,vertical:左右结构;horizontal:上下结构 | vertical | horizontal | vertical | |
| direction | 屏蔽方向,取值为:1和2,当卷帘模式为'vertical'(左右结构)时,1表示屏蔽左侧,2表示屏蔽右侧;当卷帘模式为'horizontal'(上下结构)时,1表示屏蔽上侧,2表示屏蔽下侧 | number | 1 |
方法
| 名称 | 描述 | 版本 |
|---|---|---|
| clearState | 清除卷帘效果 |
