new fengmap.FMMapMask(options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
配置项
|
Members
-
points
-
Properties:
Name Type Description pointsArray 点集合
options.points[].xnumber x坐标
options.points[].ynumber y坐标
-
showRegion
-
Properties:
Name Type Description showRegionstring 展示区域内部还是外部,取值'inside'或'outside'
-
readonlytypes
-
Properties:
Name Type Description typesArray 需要参与掩膜的元素类型数组,默认所有地图元素类型参与掩膜
Methods
-
addTo(floor)
-
添加到楼层
Name Type Description floorObject 楼层
-
remove()
-
从楼层中移除