#header-mark#
Vector Tile Layer
基础用法
API
属性
属性名 | 说明 | 类型 | 默认值 | 必填 | 备注 |
---|---|---|---|---|---|
url | 矢量tile服务URL | string | - | 是 | 必须为有效矢量瓦片服务地址 |
name | 图层名称 | string | '' | 否 | - |
attribution | 数据源属性说明 | string | '' | 否 | - |
vector_tile_layer_styles | 矢量数据样式配置 | Object | {} | 否 | 支持Mapbox GL样式规范 |
事件
事件名 | 说明 | 参数 |
---|---|---|
- | - | - |
插槽
插槽名 | 说明 |
---|---|
default | 自定义图层内容 |
方法
方法名 | 说明 | 参数 | 返回值 |
---|---|---|---|
redraw | 强制重绘矢量tile | - | void |
ref: // https://ipyleaflet.readthedocs.io/en/latest/layers/vector_tile.html
src/examples/vleaflet/layers/VectorTileLayer