跳到正文
Skillpedia
网站与界面(前端)7.2k · #13435

globe-gl

它能做什么

这个技能指导 AI 智能体使用 globe.gl 库制作三维地球数据可视化。适合希望在旋转地球上展示地点、路线或区域的团队,可用于纯 HTML 或 React。

适用场景

  • ✓当你想在三维地球上展示点位、路线或区域时。
  • ✓当数据页面需要一个带城市之间标签或弧线的地球时。
  • ✓当你使用纯 HTML 或 React,并需要现成的地球库时。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/globe-gl/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/globe-gl/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在数据页面的三维地球上,用发光的点位展示我们的客户所在地。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会加载 globe.gl,在一个设定好尺寸的容器中创建地球,并添加点位或弧线等数据图层。它还可以设置地球贴图,并在手机上减少点位数量以提高速度。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Globe.GL Skill

Workflow

  1. Confirm environment (plain HTML, framework, React bindings) and the data layers needed.
  2. Provide a minimal quick-start snippet plus the layer-specific fields.
  3. Add interactions or extra layers only if requested.
  4. Call out container sizing and performance considerations.

Quick start (ESM)

<script type="module">
  import Globe from 'globe.gl';

  const myGlobe = new Globe(document.getElementById('globe'))
    .globeImageUrl(myImageUrl)
    .pointsData(myData);
</script>

Quick start (script tag)

<script src="//cdn.jsdelivr.net/npm/globe.gl"></script>
<script>
  const myGlobe = new Globe(document.getElementById('globe'))
    .globeImageUrl(myImageUrl)
    .pointsData(myData);
</script>

Common layers to mention

  • Points
  • Arcs
  • Polygons
  • Paths
  • Heatmaps and hex bins
  • Labels or HTML elements
  • 3D objects and custom layers

Practical tips

  • Size the container with CSS; the globe fills its parent element.
  • Reduce point count or size for performance on mobile.
  • Use a darker globe texture for neon-style data overlays.

Questions to ask when specs are missing

  • Which layers do you need (points, arcs, polygons, labels)?
  • What should the globe size be on desktop vs mobile?
  • Do you want drag/rotate interactions or a static globe?
  • Is this plain HTML, React (react-globe.gl), or another framework?
常见问题

它能展示哪些数据类型?

该技能列出了点位、弧线、多边形、路径、热力图、标签和自定义三维对象。

可以在 React 中使用吗?

可以。该技能提到了 React 的绑定方式,也包括纯 HTML 的做法。

访客可以旋转地球吗?

该技能会先询问你需要可拖动旋转的地球还是静态地球,并根据你的选择进行设置。

详情

作者的原始描述

Use when implementing globe.gl (Globe.GL) for 3D globe data visualization with WebGL/ThreeJS, including setup, data layers (points, arcs, polygons, labels), and integration patterns in plain HTML or React.

repo: MengTo/Skills

热度

GitHub 星标
7.2k
排名
#13435
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能