maps4html/mapml.js/map-feature-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-feature> element. Use it when generating MapML output markup in an HTML page.
Install
npx vskill@latest install maps4html/mapml.js/map-feature-markupSKILL.md
Map features are real or imaginary location objects represented in 2D according to a standard model, called the Simple Features model. There exists a wide variety of formats that allow the encoding of the Simple Features model, famously including: GeoJSON, Keyhole Markup Language (KML), and shape files (.shp), among many others.
Map features are represented in HTML MapML using a <map-feature> element, which is rendered on the map through translation to SVG. This allows the feature to scale without distortion, as you zoom in and out.
A <map-feature> element is a container for a feature's accessible name (<map-featurecaption>), scalar properties (<map-properties>) and its geometry (<map-geometry>). The <map-feature> element can be modeled as inline HTML content as a child of the <map-layer> element, or in an XHTML MapML document, as a child of the <map-body> element.
Attributes
zoom
This allows you to set the zoom level the feature is rendered at. The zoom value should fall within the range of 0 to the maximum zoom level of the map's projection.
min
The min (zoom) attribute gets or sets the native minimum zoom of the feature. Map features' geometry and other properties are scale-dependent. The min value is a rendering zoom value cut-off; at map zoom values less than min, the feature will not be rendered.
If min is not provided, a fallback value will be calculated; the fallback value will be the minimum zoom value of the layer, or if that is not specified, of the map viewer projection's minimum value i.e. 0.
max
The max (zoom) attribute gets or sets the native maximum zoom of the feature. Map features' geometry and other properties are scale-dependent. The max value is a rendering zoom value cut-off; at map zoom values greater than max, the feature will not be rendered.
If max is not provided, a fallback value will be calculated; the fallback value will be the maximum zoom value of the layer, or if that is not specified, of the map viewer projection's maximum value e.g. 25 (depending on the projection).
Child Elements
<map-featurecaption>
This element contains the feature's accessible name, which is displayed when the feature is in focus or hovered.
<map-properties>
This element contains the contents of the popup associated to a given feature. Details on the properties elements and it's syntax can be found here.
<map-geometry>
This element contains the different points, lines and polygons that will be drawn. Details on the geometry elements and it's syntax can be found here.
Attributes
cs- This allows you to set the coordinate system of geometries.
- Defaults to pcrs (projected coordinates), but can be set to tilematrix | pcrs | gcrs explicitly.
Related Elements
Other elements may be important to provide context for feature data:
<map-meta name="zoom">
Sets the native minimum and maximum native zoom. It also allows you to set a value, this is the default zoom of all features in the case the <map-feature> is missing a zoom attribute.
<map-meta name="projection">
Sets the projection of the layer.
<map-meta name="cs">
Sets the default coordinate system of the layer. If a feature is missing the cs attribute it will 'fall back' to the value provided by a map-meta element, or pcrs if no map-meta element is in scope.
<map-meta name="extent">
Sets the extent of the layer.
Examples
An inline HTML map-feature
A map-feature in a fetched XHTML MapML document
35059.mapml:
Security
- Security scanPassed, 95 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-feature-markup/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 16
- Repository npm downloads, 7 days
- 48
- 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 28 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-feature-markup)