Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
antvis avatar

Antv L7

  • 27 installs
  • 4k repo stars
  • Updated July 30, 2026
  • antvis/l7

AntV L7 (antv-l7) is a skill that guides building interactive WebGL maps and geospatial visualizations with the AntV L7 library.

About

A reference guide for AntV L7, a WebGL-based geospatial data visualization library. A developer uses it to create interactive maps, plot geographic data as points, lines, polygons, and heatmaps, and build location-based dashboards. It documents scene setup, data parsing for GeoJSON/CSV/JSON, layer types, interactions, animations, and performance tuning for large datasets, with reference files loaded on demand.

  • Guide for building interactive WebGL maps with the AntV L7 geospatial visualization library
  • Covers point, line, polygon, heatmap, image, and raster/tile layers plus interactions and animations
  • Integrates with AMap (GaodeMap), Mapbox, Maplibre, or standalone L7 Map

Antv L7 by the numbers

  • 27 all-time installs (skills.sh)
  • Ranked #1,483 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

antv-l7 capabilities & compatibility

Capabilities
map visualization · geospatial layers · data visualization
Use cases
frontend · data analysis · ui design
Pricing
Free
From the docs

What antv-l7 says it does

Comprehensive guide for AntV L7 geospatial visualization library.
SKILL.md
Integrate maps with AMap (GaodeMap), Mapbox, Maplibre, or standalone L7 Map
SKILL.md
Optimize performance for large-scale geographic datasets
SKILL.md
npx skills add https://github.com/antvis/l7 --skill antv-l7

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs27
repo stars4k
Last updatedJuly 30, 2026
Repositoryantvis/l7

What it does

Build interactive WebGL maps and geospatial dashboards with AntV L7 from GeoJSON, CSV, or JSON data.

Who is it for?

Interactive maps, geographic data visualization, and location-based data dashboards.

When should I use this skill?

When a developer needs interactive maps, geographic data layers, or location dashboards with AntV L7.

What you get

An interactive L7 map with the right layers, data parsing, interactions, and performance settings.

  • A configured Scene with map layers, interactions, and performance tuning

By the numbers

  • documents 5-step core workflow (Scene, data, layers, interaction, performance)
  • covers 8+ layer types (point, line, polygon, heatmap, image, raster, tile-raster, tile-vector)

Files

SKILL.mdMarkdownGitHub ↗

AntV L7 Geospatial Visualization

AntV L7 是基于 WebGL 的大规模地理空间数据可视化引擎,支持多种地图底图和丰富的可视化图层类型。

Quick Start

创建最简单的 L7 地图应用:

import { Scene, PointLayer } from '@antv/l7';
import { GaodeMap } from '@antv/l7-maps';

// 1. 初始化场景
const scene = new Scene({
  id: 'map',
  map: new GaodeMap({
    center: [120.19, 30.26],
    zoom: 10,
    style: 'light',
  }),
});

// 2. 添加图层
scene.on('loaded', () => {
  const pointLayer = new PointLayer()
    .source(data, {
      parser: { type: 'json', x: 'lng', y: 'lat' },
    })
    .shape('circle')
    .size(10)
    .color('#5B8FF9');

  scene.addLayer(pointLayer);
});

Core Workflow

L7 的典型开发流程:

1. 场景初始化 (Scene) → 2. 数据准备 → 3. 创建图层 (Layer) → 4. 添加交互 → 5. 优化性能

📚 Reference Documentation

详细文档按领域组织,根据需要加载:

基础功能 (references/core/)

  • [scene.md](references/core/scene.md) - Scene 初始化、生命周期、方法
  • [map-types.md](references/core/map-types.md) - GaodeMap、Mapbox、Maplibre、Map 的配置

数据处理 (references/data/)

  • [geojson.md](references/data/geojson.md) - GeoJSON 格式、解析、转换
  • [csv.md](references/data/csv.md) - CSV 数据加载和处理
  • [json.md](references/data/json.md) - JSON 数据、OD 数据、路径数据
  • [parser.md](references/data/parser.md) - Parser 配置、Transform 转换
  • [source-raster.md](references/data/source-raster.md) - 栅格数据源(GeoTIFF、多波段、遥感影像)

图层类型 (references/layers/)

  • [point.md](references/layers/point.md) - 点图层:散点、气泡、3D 柱状
  • [line.md](references/layers/line.md) - 线图层:路径、弧线、流线
  • [polygon.md](references/layers/polygon.md) - 面图层:填充、3D 建筑、choropleth
  • [heatmap.md](references/layers/heatmap.md) - 热力图:密度分布、网格热力
  • [image.md](references/layers/image.md) - 图片图层:卫星图、航拍图、平面图
  • [raster.md](references/layers/raster.md) - 栅格图层:单张栅格图片
  • [tile-raster.md](references/layers/tile-raster.md) - 栅格瓦片图层:TMS/WMS/WMTS 瓦片服务
  • [base-layer.md](references/layers/base-layer.md) - 图层通用方法和事件
  • [other-layers.md](references/layers/other-layers.md) - 其他图层类型

视觉映射 (references/visual/)

  • [mapping.md](references/visual/mapping.md) - 颜色、大小、形状映射
  • [style.md](references/visual/style.md) - 透明度、描边、纹理等样式

交互组件 (references/interaction/)

  • [events.md](references/interaction/events.md) - 点击、悬停、选中事件
  • [popup.md](references/interaction/popup.md) - Popup 弹窗组件
  • [layer-popup.md](references/interaction/layer-popup.md) - LayerPopup 图层弹窗
  • [components.md](references/interaction/components.md) - Marker、MarkerLayer、Controls、Legend
  • [marker-layer.md](references/interaction/marker-layer.md) - MarkerLayer 标注图层
  • [controls.md](references/interaction/controls.md) - 地图控件(Zoom、Scale、Fullscreen 等)

动画效果 (references/animation/)

  • [layer-animation.md](references/animation/layer-animation.md) - 图层动画、轨迹动画

性能优化 (references/performance/)

  • [optimization.md](references/performance/optimization.md) - 数据过滤、聚合、图层管理

使用指南

按用户需求选择文档

用户请求示例加载的文档
"创建一个地图"core/scene.md, core/map-types.md
"显示点位数据"layers/point.md, data/geojson.md
"绘制路径"layers/line.md
"热力图"layers/heatmap.md
"加载卫星影像"layers/tile-raster.md, data/source-raster.md
"添加点击事件"interaction/events.md
"显示弹窗"interaction/popup.md, interaction/layer-popup.md
"添加标注"interaction/components.md, interaction/marker-layer.md
"添加控件"interaction/controls.md

技能组合模式

复杂需求需要组合多个技能:

城市可视化 = scene + polygon + point + events + popup
轨迹动画 = scene + line + animation
热力分析 = scene + heatmap + data/json

依赖检查

使用 metadata/skill-dependency.json 检查技能依赖关系:

{
  "point-layer": {
    "requires": ["scene-initialization"],
    "optional": ["source-geojson", "color-mapping"],
    "nextSteps": ["event-handling", "popup"]
  }
}

版本信息

  • 当前版本: L7 2.x
  • 浏览器支持: Chrome ≥60, Firefox ≥60, Safari ≥12
  • 坐标系: WGS84 (地理坐标) / Plane coordinates (独立 Map)
  • 底图: 高德地图、Mapbox、Maplibre、L7 Map (独立)

最佳实践

1. 场景初始化优先: 始终从创建 Scene 开始 2. 数据格式规范: 优先使用 GeoJSON 标准格式 3. 性能优先: 大数据量时使用数据过滤和聚合 4. 渐进增强: 先实现基础功能,再添加交互和动画 5. 错误处理: 添加事件监听和数据验证

快速参考

常用导入

// 核心
import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-maps';

// 图层
import { PointLayer, LineLayer, PolygonLayer, HeatmapLayer } from '@antv/l7';

// 组件
import { Popup, Marker } from '@antv/l7';

地图样式选项

  • 'light' - 浅色风格
  • 'dark' - 深色风格
  • 'normal' - 标准风格
  • 'satellite' - 卫星影像
  • 'blank' - 空白底图(独立 Map)

坐标格式

[经度, 纬度]; // [120.19, 30.26]
// 经度: -180 ~ 180
// 纬度: -90 ~ 90

元数据

  • skill-dependency.json - 技能依赖关系图
  • skill-tags.json - 中英文标签检索
  • version-compatibility.json - 版本兼容性信息

查看 index.md 获取完整技能列表和导航。

Related skills

FAQ

Which base maps does AntV L7 support?

It integrates with AMap (GaodeMap), Mapbox, Maplibre, or a standalone L7 Map.

What data formats can L7 parse?

GeoJSON, CSV, JSON, and raster sources such as GeoTIFF.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.