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