maps4html/mapml.js/map-extent-markup
Claude Code and agent skill by maps4html/mapml.js
- community
Checking that the SKILL.md file is still in the repository.
Tells you how to correctly create and edit the markup for a <map-extent> element. Use it when generating MapML output markup in an HTML page.
Install
npx vskill@latest install maps4html/mapml.js/map-extent-markupSKILL.md
The <map-extent> element is a hypertext control that is associated to and represents the rectangle of the map viewport, from the user's perspective. Map authors use it to compose server requests for layer content. Requests are composed using URL templates processed by the browser as the map moves and requires new content to paint. The URL templates each contain one or more variable references, with each variable reference denoted by the name of the variable enclosed in braces {}.
Variables are created by the map author using the <map-input> element. There are several types of <map-input>, allowing the map author to reference the corners of the extent, its width and height, and its zoom.
An example of a <map-extent> element being used to load image tiles for a single URL template.
Attributes
units
Specifies the projection of the tiles and other content that is expected from the server. If the projection value is a case-insensitive match of the <mapml-viewer> projection attribute, the extent will be disabled in the layer control, and will not be displayed on the map, nor content fetched.
Defined values of units include:
| Projection | Description | |
|---|---|---|
| OSMTILE | Web Mercator, with 256px x 256px tiles recursively defined inside a square bounds at zoom = 0 | |
| WGS84 | Pseudo plate carrée, with 256px x 256px tiles. Zoom = 0 contains two tiles in two columns, with their origin at -180,90. False easting and northing (pcrs) values inside the projection bounds correspond to longitude and latitude, respectively. | |
| CBMTILE | Lambert Conformal Conic, with 256px x 256px tiles. Zoom levels chosen by scale denominator, so tiles do not nest. |
Author-defined values of units are possible, using the Custom projections API
The units attribute is required and can't be changed.
label
Specifies a label for an extent which is displayed in the layer control. When a label value is not provided, the label value defaults to 'Sub-Layer' in the layer control.
checked
The checked attribute and property is boolean. When present, the checked property value is taken to be 'true'; when not present, the property value is 'false'. The map-extent content will be fetched and rendered according to the checked state. Beware that it is the presence of the attribute that makes it true, not the value of the attribute. For example, the attribute checked="false" actually turns out to be checked, as described by MDN Web docs.
hidden
The hidden attribute and property is boolean. When present, the extent is hidden (not present) in the layer control. Regardless of hidden state, the layer is rendered or not depending on the checked attribute state.
opacity
The opacity attribute is used to set the initial opacity of the <map-extent> element. Valid opacity values range from from "0.0" to "1.0" with strictly one demical place and are reflected in the extent settings opacity input slider control. When the opacity attribute is not present, the opacity is set to "1.0" by default.
Examples
Multiple Extent
The following example shows multiple <map-extent> elements in a layer. The different elements can be selected from the three dots menu of the Basemap layer.
WMS Request
The following example shows a Web Map Service Request using <map-link> to request map images.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/map-extent-markup/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 16
- Repository npm downloads, 7 days
- 54
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 27 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/maps4html/mapml.js/map-extent-markup)