MinimapComponent(param, size, layout)

new MinimapComponent(param, size, layout)

Parameters:
Name Type Description
param object 初始参数
size Array.<Number> 小地图尺寸
layout Array.<String> 小地图布局位置

Members

enable :Array

设置/获取小地图是否启用
Example
minimap.enable = true

layout :Array.<String>

设置/获取小地图的布局
Example
minimap.layout = ["Left", "Bottom"]

position :Number

设置/获取小地图的位置 如果设置了 position 就忽略 layout
Example
minimap.position = [1,1]

size :Array

设置/获取小地图的尺寸
Example
minimap.size = [300, 300]