maps4html/mapml.js/map-layer-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-layer> element. Use it when generating MapML output markup in an HTML page.
Install
npx vskill@latest install maps4html/mapml.js/map-layer-markupSKILL.md
Maps have one or more layers. Map layers are implemented by the <map-layer> custom element. All <mapml-viewer> content is contained by one or more <map-layer> elements, either inline or by remote fetch representing the layer's content.
<map-layer> is not a 'void' element - it must be closed with a </map-layer> tag.
Map content can either be inline, as shown above - between the beginning <map-layer> and ending </map-layer> tags - or fetched, from the <map-layer src="..."></map-layer> source attribute URL:
This documentation uses the convention of inline content mostly. Fetched map content follows similar semantics, except it is parsed with the browser's XML parser and so must follow both MapML document conventions as well as XML syntax rules.
Attributes
src
Contains the path to a MapML document.
checked
The <map-layer 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'. 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 <map-layer hidden> attribute and property is boolean. When present, the layer is hidden in the layer control.
label
The label attribute is used by inline content as the displayed text label of the layer in the layer control. In fetched content, the label attribute is ignored, and the fetched <map-title> element is used.
media
The media attribute is used to express map media conditions under which the layer content should be used (if inline content is present), or loaded from the src URL, if that attribute is present. Map media conditions evaluate to true or false. A layer for which the map media condition evaluates to false is by default hidden. A layer for which the map media condition evaluates to true is added to the map according to its checked attribute, and is added to the layer control according to its hidden attribute.
Map media queries can include map properties as documented in the matchMedia API.
opacity
The opacity attribute is used to set the initial opacity of the <map-layer> element. Valid opacity values range from from "0.0" to "1.0" and are reflected in the layer control opacity input slider control. When the opacity attribute is not present, the opacity is set to "1.0" by default.
Examples
Layer Opacity
The following example sets the initial opacity for a <map-layer>.
Security
- Security scanPassed, 96 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-layer-markup/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 16
- Repository npm downloads, 7 days
- 38
- 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 30 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-layer-markup)