Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计通过

openlayersopenlayers 效率

Agent Skill

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

总安装

4,633

周安装

197

GitHub Stars

公开资料未说明

下载量

1,623
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install openlayers

简介

openlayers 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目时使用。

  • 它支持构建、调试和集成 OpenLayers Web 地图,包括地图/视图设置、XYZ 和 OSM 基础层、矢量源、GeoJSON 叠加层等。
  • 通过 clawhub 安装,命令为 openclaw skills install openlayers,需结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用于需要地图可视化或前端交互的项目场景,如地理数据展示或空间分析工具开发。

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.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.8%
按下载量换算1,182

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills