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.

Install it, pinned
mdr add znlgis/opengis-skills/openlayers@git:20261027.6562616

Pins 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

The exact contents, by fingerprint
mdr add znlgis/opengis-skills/openlayers@sha256:ba304defef694237

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_fq6hwzomfyygwqjv.svg)](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.

versioncommittedcommitsizeaudit
git:20261027.6562616 latest2026-10-27 6562616 10,594 BA view · diff
git:20261027.8e032822026-10-27 8e03282 10,780 BA view · diff
git:20261020.4b64b892026-10-20 4b64b89 8,658 BA view · diff
git:20261015.45b67dd2026-10-15 45b67dd 7,545 BA view · diff
git:20261014.00f12ca2026-10-14 00f12ca 7,540 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

3d-skills SKILL.md skill
znlgis/opengis-skills · 3d/SKILL.md · Use when working with 3D Gaussian Splatting (3DGS), .ply model cleanup/compression/publishing, interactive 360-degree…
git:20261027.8e03282 · audit A · 78 stars
ara3d-sdk SKILL.md skill
znlgis/opengis-skills · 3d/ara3d-sdk/SKILL.md · Use when processing AEC/BIM 3D data in .NET 8 — mesh generation and transformation, SIMD-accelerated math, IFC/STEP/PLY…
git:20261027.8e03282 · audit A · 78 stars
elements SKILL.md skill
znlgis/opengis-skills · 3d/elements/SKILL.md · Use when generating building information models (BIM) programmatically in C#/.NET — wall, beam, column, floor creation…
git:20261027.8e03282 · audit A · 78 stars
open3d SKILL.md skill
znlgis/opengis-skills · 3d/open3d/SKILL.md · Use when processing 3D point clouds and meshes in Python — read/write PLY/PCD, voxel downsample, normal estimation…
git:20261027.8e03282 · audit A · 78 stars
opencsg-net SKILL.md skill
znlgis/opengis-skills · 3d/opencsg-net/SKILL.md · Use when doing constructive solid geometry (CSG) modeling in .NET — cube/sphere/cylinder primitives…
git:20261015.5d0de0d · audit A · 78 stars
photo-sphere-viewer SKILL.md skill
znlgis/opengis-skills · 3d/photo-sphere-viewer/SKILL.md · Use when displaying 360-degree panoramic images (equirectangular/cubemap/dual-fisheye) in web applications, building…
git:20261027.8e03282 · audit B · 78 stars
supersplat SKILL.md skill
znlgis/opengis-skills · 3d/supersplat/SKILL.md · Use when editing 3D Gaussian Splatting (3DGS) .ply models in browser — cleanup noise/floaters, crop, transform…
git:20261027.8e03282 · audit A · 78 stars
opengis-skills SKILL.md skill
znlgis/opengis-skills · SKILL.md · Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise. Index of 114 skills across 8 categories: gis…
git:20261027.6562616 · audit A · 78 stars
ai-skills SKILL.md skill
znlgis/opengis-skills · ai/SKILL.md · Use when building LLM applications, RAG knowledge bases, AI agents, multi-agent crews, high-throughput model serving…
git:20261027.8e03282 · audit A · 78 stars
crewai SKILL.md skill
znlgis/opengis-skills · ai/crewai/SKILL.md · Use when orchestrating multi-agent work with crewAI 1.15 — Agent/Task/Crew, Process.sequential vs hierarchical, @tool /…
git:20261027.8e03282 · audit B · 78 stars
deepseek-harness SKILL.md skill
znlgis/opengis-skills · ai/deepseek-harness/SKILL.md · Use when running, scripting, or extending DeepSeek Harness (dsh) 0.2.1 — npx @deepseek-ai/dsh web / dsh --profile…
git:20261027.8e03282 · audit B · 78 stars
dify SKILL.md skill
znlgis/opengis-skills · ai/dify/SKILL.md · Use when self-hosting an LLM app platform with visual orchestration — docker compose up in dify/docker, knowledge bases…
git:20261027.8e03282 · audit A · 78 stars

Every file in znlgis/opengis-skills

Other files named openlayers

openlayers SKILL.md skill
mapsnippets/openlayers-skill · skills/openlayers/SKILL.md · Expert coding skill for building enterprise-grade, high-performance web maps with OpenLayers. USE WHEN the user wants…
git:20260905.2d6b087 · audit B · 2 stars

Browse by kind, by grade A, or by owner.