Class: L7Layer

L7Layer

L7Layer对接了@antv/L7的图层类型,能够通过maplibre-gl操作@antv/L7的图层。

new L7Layer(options)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/maplibregl/iclient-maplibregl.js"></script>
<script>
  new maplibregl.supermap.L7Layer(options);
  
</script>

// ES6 Import
import { L7Layer } from '@supermapgis/iclient-maplibregl';

new L7Layer(options);

maplibregl/overlay/L7Layer.js, line 10
Name Type Description
options Object

图层配置项,包括以下参数:

Name Type Description
type string

@antv/L7的图层类型,详情参见: https://l7.antv.antgroup.com/api/point_layer/pointlayer

options Object

@antv/L7图层的配置项,详情参见: https://l7.antv.antgroup.com/api/point_layer/options

layerID string 可选

图层 ID。默认使用 CommonUtil.createUniqueID("l7_layer_") 创建图层 ID。

Version:
  • 11.2.0

Extends

Methods

inherited getL7Layer(){Object}

common/overlay/l7/L7LayerBase.js, line 54

获取@antv/L7的layer实例。

Returns:
Type Description
Object @antv/L7的layer实例。

inherited reRender()

common/overlay/l7/L7LayerBase.js, line 63

当修改@antv/L7的layer的配置时,重新渲染。