openlayers SKILL.md skillA
openlayers from znlgis/opengis-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add znlgis/opengis-skills/openlayers@git:20261027.6562616Pins git:20261027.6562616 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- znlgis/opengis-skills
- Path
gis/openlayers/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261027.6562616, committed Oct 27, 2026
- First version recorded
- Oct 14, 2026
- Size
- 10,594 bytes
- Repository stars
- 78
- License
- MIT
Use when adding interactive 2D maps to web apps with npm ol 10.11.0 — Map/View, fromLonLat to EPSG:3857, WMS/WMTS/XYZ sources, MVT with featureClass, Draw/Modify/Snap interactions, or debugging blank layers (missing setStyle), offset centers and ol/... module-not-found errors.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
> **项目地址:** <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 渲染(点云、海量点)
---
## 安装
```bash
npm install ol
```
```js
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` | 交互 |
---
## 图层与数据源
### 栅格底图
```js
import XYZ from 'ol/source/XYZ.js';
import TileWMS from 'ol/source/TileWMS.js';
…Read the whole file at its exact version.
How to install
mdr add znlgis/opengis-skills/openlayers@sha256:ba304defef694237The line at the top of this page pins the label git:20261027.6562616, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_fq6hwzomfyygwqjv)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Oct 14, 2026 and Oct 27, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261027.6562616 latest | 2026-10-27 | 6562616 | 10,594 B | A | view · diff |
| git:20261027.8e03282 | 2026-10-27 | 8e03282 | 10,780 B | A | view · diff |
| git:20261020.4b64b89 | 2026-10-20 | 4b64b89 | 8,658 B | A | view · diff |
| git:20261015.45b67dd | 2026-10-15 | 45b67dd | 7,545 B | A | view · diff |
| git:20261014.00f12ca | 2026-10-14 | 00f12ca | 7,540 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (10594 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
znlgis/opengis-skills · 78 stars · license MIT · pushed 2026-10-27 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_fq6hwzomfyygwqjv GET https://markdownregistry.com/api/v1/resolve?ref=znlgis/opengis-skills/openlayers GET https://markdownregistry.com/api/v1/blob/ba304defef694237c50fd44fb82215a8812e2917a22b19e8430a49585930d368
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from znlgis/opengis-skills
Every file in znlgis/opengis-skills