Class: FMTileLayer

FMTileLayer

FMTileLayer 地图类,属于fengmap.plugins.min.js,依赖于openLayer,使用时,需要引用 https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.5.0/css/ol.css https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.5.0/build/ol.js

new fengmap.FMTileLayer(options)

Name Type Description
options json

参数

Name Type Description
mode fengmap.FMTileProvider

模式 默认:fengmap.FMTileProvider.AMAP_VECTOR

offset number

偏移,默认 1.0

Members

visible

Properties:
Name Type Description
visible Boolean

显示、隐藏

Methods

addTo(map)

添加到地图

Name Type Description
map fengmap.FMMap

地图

remove()

从地图中删除