new FGBLayer(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/maplibregl/iclient-maplibregl.js"></script>
<script>
new maplibregl.supermap.FGBLayer(options);
</script>
// ES6 Import
import { FGBLayer } from '@supermapgis/iclient-maplibregl';
new FGBLayer(options);
maplibregl/overlay/FGBLayer.js, line 15
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
- Version:
- 11.1.0
Methods
-
moveLayer(layerID, beforeId)
maplibregl/overlay/FGBLayer.js, line 117 -
设置图层可见性。
Name Type Default Description layerID
string 待插入的图层 ID。
beforeId
boolean true 可选 将本图层插入到图层 ID 为layerID 的图层之前。
-
onAdd(map)
maplibregl/overlay/FGBLayer.js, line 76 -
Name Type Description map
maplibregl.Map MapLibreGL Map 对象。
-
onRemove()
maplibregl/overlay/FGBLayer.js, line 111 -
-
render()
maplibregl/overlay/FGBLayer.js, line 105 -
-
setVisibility(visibility)
maplibregl/overlay/FGBLayer.js, line 126 -
设置图层可见性。
Name Type Description visibility
boolean 可选 是否显示图层(当前地图的 resolution 在最大最小 resolution 之间)。