Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add znlgis/opengis-skills --skill openlayersgit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/znlgis/opengis-skills/openlayers)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/openlayers"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/openlayers/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/openlayers"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/openlayers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.03269 |
| Opus 5.5 | $0.00031 | $0.01308 |
| Sonnet 5.5 | $0.00016 | $0.00654 |
| Haiku 4.5 | $0.00008 | $0.00327 |
Grade A, and why
openlayers scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **验证产物**:`npm run build` 后用 `npx serve dist`(或 `python -m http.server 5173 -d dist`)起静态服务,`curl.exe -I http://localhost:5173/` 与打包出的 `assets/*.js` 应为 200;AI 助手通常看不到浏览器画面,请用户看页面与控制台,环境支持读图时用截图核对。 How it starts
The opening of the file, as written. The whole thing — 343 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/openlayers/openlayers
官方文档: https://openlayers.org/doc/
API 参考: https://openlayers.org/en/latest/apidoc/
示例: https://openlayers.org/en/latest/examples/
最新版本: 10.11.0(截至 2026-10,npm
ol)许可证: BSD-2-Clause
概述
OpenLayers(OL)特性:
- 多源底图:OSM、Bing、XYZ、WMS、WMTS、ArcGIS REST
- 矢量数据:GeoJSON、KML、GPX、TopoJSON、GML、MVT
- 投影:内置 EPSG:3857/4326,与 proj4 集成支持任意投影
- 矢量瓦片(MVT)原生支持
- 强大的样式与交互(Draw/Modify/Select/Snap)
- WebGL 渲染(点云、海量点)
安装
npm install ol
import 'ol/ol.css';
import Map from 'ol/Map.js';
import View from 'ol/View.js';
import TileLayer from 'ol/layer/Tile.js';
import OSM from 'ol/source/OSM.js';
const map = new Map({
target: 'map',
layers: [new TileLayer({ source: new OSM() })],
view: new View({ center: [12968000, 4863000], zoom: 10 }) // EPSG:3857
});
核心概念
| 类 | 作用 |
|---|---|
Map |
顶层容器 |
View |
视图(投影、中心、缩放、旋转) |
Layer |
图层 |
Source |
数据源 |
Feature / Geometry |
矢量要素与几何 |
Style |
样式 |
Interaction |
交互 |
图层与数据源
栅格底图
import XYZ from 'ol/source/XYZ.js';
import TileWMS from 'ol/source/TileWMS.js';
new TileLayer({ source: new XYZ({
url: 'https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}'
}) });
new TileLayer({ source: new TileWMS({
url: 'http://localhost:8080/geoserver/wms',
params: { LAYERS: 'topp:states', TILED: true }
}) });
矢量图层(GeoJSON)
import VectorLayer from 'ol/layer/Vector.js';
import VectorSource from 'ol/source/Vector.js';
import GeoJSON from 'ol/format/GeoJSON.js';
map.addLayer(new VectorLayer({
source: new VectorSource({
url: '/data/poi.geojson',
format: new GeoJSON()
})
}));
矢量瓦片(MVT)
import VectorTileLayer from 'ol/layer/VectorTile.js';
import VectorTileSource from 'ol/source/VectorTile.js';
import MVT from 'ol/format/MVT.js';
new VectorTileLayer({
declutter: true,
source: new VectorTileSource({
format: new MVT(),
url: 'https://server/tiles/{z}/{x}/{y}.pbf'
})
});
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago Changed · +57 lines ba304defef69
- 17d ago Changed · +29 tokens per session ed3ded2858df
- 23d ago Changed · +6 lines 6cfe6f10cc69
- 1mo ago Changed · +2 lines afb2c16d1076
- 1mo ago Changed dacf5c23d62b
- 2mo ago First seen · 278 lines · 49 tokens per session scan A 618e3b5a5d50
openlayers is a skill published in the GitHub repository znlgis/opengis-skills (76 stars, last pushed 10d ago), licensed MIT. It adds 78 tokens to every session and 3,269 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
openlayers compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| openlayersznlgis/opengis-skills | Skill | 76 | 10d ago | MIT | A | 78 | Claude Code, Codex |
| angular-developerangular/angular | Skill | 101k | yesterday | MIT | A | 93 | Claude Code, Codex |
| angular-new-appangular/angular | Skill | 101k | yesterday | MIT | A | 43 | Claude Code, Codex |
| portaljs-add-mapdatopian/portaljs | Skill | 2.4k | 9d ago | MIT | A | 69 | Claude Code |
| javascript-expertpersonamanagmentlayer/pcl | Skill | 44 | 11d ago | Apache-2.0 | A | 69 | Claude Code |
| typescript-expertpersonamanagmentlayer/pcl | Skill | 44 | 11d ago | Apache-2.0 | A | 40 | Claude Code |
| astrobytesagain/ai-skills | Skill | 16 | 6mo ago | none | A | 52 | Claude Code, Codex |