洋流叠加瓦片图
创建洋流叠加瓦片图,一定要在 init 函数返回成功异步结果后调用
示例
async function start() {
const layer = await hnsdk.createOceanCurrents();
layer.addTo(map);
}
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| remove | this | 从当前处于活动状态的地图中删除图层。 |
| addTo | this | 将图层添加到指定的地图或图层组 |
返回
TileLayer.WMS 实例对象
海宁 WEB SDK创建洋流叠加瓦片图,一定要在 init 函数返回成功异步结果后调用
async function start() {
const layer = await hnsdk.createOceanCurrents();
layer.addTo(map);
}
| 方法 | 返回值 | 描述 |
|---|---|---|
| remove | this | 从当前处于活动状态的地图中删除图层。 |
| addTo | this | 将图层添加到指定的地图或图层组 |
TileLayer.WMS 实例对象