Token导航 LogoToken导航

Agent Skill · 效率

openlayers(openlayers 效率)

openlayers 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

openlayers 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为操作浏览器;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 11,355。

总安装 4,633周安装 197GitHub Stars 公开资料未说明下载 1,623核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openlayers(openlayers 效率)
来源仓库:https://github.com/jvy/openlayers
安装命令:
openclaw skills install openlayers
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openlayers

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

openlayers 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目时使用。它支持构建、调试和集成 OpenLayers Web 地图,包括地图/视图设置、XYZ 和 OSM 基础层、矢量源、GeoJSON 叠加层等。

通过 clawhub 安装,命令为 openclaw skills install openlayers,需结合来源仓库和 README 核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。适用于需要地图可视化或前端交互的项目场景,如地理数据展示或空间分析工具开发。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install openlayers;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

openlayers 怎么安装?

在终端执行 openclaw skills install openlayers。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

openlayers 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

openlayers 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

openlayers 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

openlayers 用的人多吗?

公开数据是累计安装 4,633 次,近一周安装 197 次,下载 1,623 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

openlayers 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
openlayers

openlayers 效率 · 本页

4,633—操作浏览器MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
openlayers
description
Build, debug, and integrate OpenLayers web maps, including map/view setup, XYZ and OSM base layers, vector sources, GeoJSON overlays, Web Mercator and WGS84 handling, feature styling, click/pointer interaction, layer ordering, fit-to-extent flows, and frontend integration for vanilla HTML, Vite, React, and similar apps. Use when the user asks for OpenLayers code, ol usage, OpenLayers debugging, web GIS map implementation, or migration guidance from Leaflet/Mapbox. 中文触发:OpenLayers、ol 地图、前端 GIS、GeoJSON 地图、矢量图层、Web Mercator、地图交互、OpenLayers 调试。
metadata
openclaw
emoji
🧭
homepage
https://openlayers.org/
requires
bins
["python3"]
install
kind
brew
formula
python
bins
["python3"]
label
Install Python 3 (brew)

OpenLayers

Use this skill for practical OpenLayers web map work in browser apps.

OpenLayers is the right choice when the user needs a stronger GIS-style 2D web map stack than Leaflet, especially for projection-aware workflows, tiled and vector layers, custom styling, feature interaction, and more explicit control over map/view/source/layer composition.

Workflow

  1. Confirm the runtime first:

- plain HTML - Vite - React - Next.js or another SPA framework

  1. Confirm the actual map job:

- base map only - markers or selected features - GeoJSON overlay - WMS or WMTS layer - draw or modify interaction - bug fixing or migration

  1. Start from the smallest visible map before adding custom sources, interactions, or large datasets.
  2. Check container size, CSS, and projection assumptions before debugging layer logic.
  3. Keep coordinate transforms explicit; OpenLayers often needs fromLonLat(...) or explicit dataProjection and featureProjection.

Implementation Guardrails

  • Ensure the map container has a real height before initializing Map.
  • Keep View projection, incoming data projection, and display projection explicit.
  • Use fromLonLat([lng, lat]) for geographic coordinates shown on the default Web Mercator map.
  • For GeoJSON, set both dataProjection and featureProjection when the source CRS is known.
  • Prefer stable layer and source instances instead of recreating the whole map on every state update.
  • Clean up the map target in SPA teardown paths.
  • Fit bounds from actual features or source extents when the dataset is dynamic.
  • Style features deterministically; do not bury business logic inside a style function unless the user needs data-driven styling.

Common Failure Checks

  • Blank map: verify container height, CSS import, map target, and layer source URL.
  • Features in the wrong place: verify whether lon/lat was used without fromLonLat(...), or whether GeoJSON projections were omitted.
  • Click picking not working: verify layer visibility, z-index ordering, and forEachFeatureAtPixel(...) usage.
  • Map looks offset after layout changes: call map.updateSize() after the container becomes visible or resizes.
  • Performance issues with many features: simplify data, cluster points, reduce style churn, or move expensive logic out of pointer handlers.
  • WMS or WMTS not rendering: verify service URL, layer names, matrix set, CRS, and cross-origin behavior.

Practical Patterns

Minimal map

  • Create one Map, one View, and one base TileLayer.
  • Use OSM or XYZ only after confirming the tile URL and attribution requirements.
  • Set center using fromLonLat(...) when starting from geographic coordinates.

GeoJSON overlay

  • Use VectorSource with a GeoJSON format object.
  • Set dataProjection and featureProjection explicitly when precision matters.
  • Fit the view to vectorSource.getExtent() after features load.

Interactive picking

  • Use map.on("singleclick", ...) for primary feature selection.
  • Use forEachFeatureAtPixel(...) to identify the top visible feature.
  • Keep popup or side-panel rendering outside the OpenLayers style layer when possible.

SPA integration

  • Create the map once after the container mounts.
  • Reuse Source and Layer objects across updates.
  • On teardown, call map.setTarget(undefined) to release DOM bindings.

Draw and edit

  • Add Draw, Modify, or Select only when the user explicitly needs editing.
  • Confirm output format and projection before persisting edited geometries.

Task Boundaries

  • Use this skill for OpenLayers-specific implementation, debugging, and migration patterns.
  • For CRS and reprojection reasoning, use project, wgs84, or cgcs2000 as appropriate.
  • For file-based GIS conversion or batch reprojection, use qgis.
  • For lightweight non-GIS-heavy web maps, leaflet may be simpler.
  • For Mapbox GL style expressions or hosted Mapbox platform APIs, use mapbox.
  • For globe and 3D scene rendering, use cesium.

What To Return

  • A minimal working OpenLayers setup or a targeted fix.
  • The likely root cause when debugging projection, sizing, or layer visibility issues.
  • Clear notes on coordinate order, projection assumptions, and view fitting.
  • Framework-specific lifecycle handling when relevant.
  • A smaller reproducible example first if the original integration is noisy.

Practical Commands

Generate a minimal OpenLayers page

python3 {baseDir}/scripts/openlayers_scaffold.py minimal --out ./openlayers-demo.html

Generate a GeoJSON-ready OpenLayers page

python3 {baseDir}/scripts/openlayers_scaffold.py geojson --out ./openlayers-geojson.html --geojson ./data/sample.geojson

OpenClaw + ClawHub Notes

  • Keep examples generic, portable, and safe to paste into local projects.
  • Do not hardcode private tile services, private tokens, or machine-specific paths.
  • Prefer standards-based examples and explicit projection handling over hidden magic.
  • For clawhub.ai publication, keep examples reproducible and version/changelog updates semver-driven.

Reference Docs In This Skill

  • Read {baseDir}/references/patterns.md when generating or fixing OpenLayers code.
  • Read {baseDir}/references/layer-recipes.md when the task involves XYZ, OSM, GeoJSON, WMS, WMTS, or feature interaction patterns.

平台分布

OpenClaw

72.8%
按下载量换算1,182

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills