Class: FMGroundLayer

FMGroundLayer

FMGroundLayer 地面网格类,属于fengmap.plugin.layers.min.js

new fengmap.FMGroundLayer(options)

Name Type Description
options json

参数

Name Type Description
offset number

偏移,默认 1.0。往上为负值,下为正值

color string

地面颜色,默认#6E6A62

opacity number

透明度,默认为1

gridColor string

网格颜色,默认#000000

gridOpacity number

网格透明度,默认为0.1

Members

color

Properties:
Name Type Description
color string

地面颜色 如:'#ff0000'

gridColor

Properties:
Name Type Description
gridColor string

网格颜色 如:'#ff0000'

gridOpacity

Properties:
Name Type Description
gridOpacity number

网格透明度

opacity

Properties:
Name Type Description
opacity number

地面透明度

visible

Properties:
Name Type Description
visible Boolean

显示、隐藏

Methods

addTo(map)

添加到地图

Name Type Description
map Object

FMMap对象

remove()

删除地面网格