minemap-plugin-edit

Configure MineMap editing workflows with an external edit plugin.

3|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/ming1zhou88/minemap-skills --skill minemap-plugin-edit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minemap-plugin-edit
Source: https://github.com/ming1zhou88/minemap-skills/tree/main/skills/minemap-plugin-edit
Command: npx skills add https://github.com/ming1zhou88/minemap-skills --skill minemap-plugin-edit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

External MineMap editing plugin provides an editing workbench for drawing, selecting, styling overrides, locking, batch writing and overlay editing. It is designed as a demo-backed external dependency, not part of the core MineMap feature, to validate editing workflows in demos and integrations.

Core Features & Use Cases

  • External plugin instance controlled via new minemap.edit.init(map, options) after the map loads.
  • Supports editing workflows through edit.onBtnCtrlActive(mode), setCustomStyle(style), and setFeatures(featureCollection).
  • Provides a drawing/edit pool with edit.draw.add, edit.draw.getSelectedIds, and edit.draw.deleteAll, plus per-id property updates with setFeaturePropertiesByIds(ids, properties) and locking via setLockByIds(ids, true).
  • Demonstrates multi-surface scenarios with 2D/3D overlays and classificationType to position layers above edits, plus patterns for toolbar-mode switching and bulk initial feature import.

Quick Start

Initialize the edit plugin after the map loads and call new minemap.edit.init(map, options) to begin editing.

Frequently Asked Questions about minemap-plugin-edit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable drawing and feature editing on a MineMap base map?

To enable MineMap feature editing, initialize the external edit plugin after the map loads using new minemap.edit.init(map, options), then activate drawing modes via edit.onBtnCtrlActive(mode).

How do I lock specific features to prevent unwanted edits in MineMap?

To lock MineMap features and prevent edits, call the setLockByIds(ids, true) method. This restricts modifications to selected geometries while still allowing other features in the collection to be drawn or styled.

Can I override styles for selected features in a MineMap editing workflow?

Yes, you can override MineMap feature styles during editing by calling setCustomStyle(style). This aligns the visual presentation with the underlying feature properties defined in your initial feature collection.

How do I batch import and update features in MineMap?

To batch import MineMap features, use setFeatures(featureCollection). You can then perform bulk updates by applying setFeaturePropertiesByIds(ids, properties) to modify specific attributes across multiple geometries simultaneously.

Does the MineMap edit plugin support 2D and 3D overlay editing?

Yes, the MineMap edit plugin supports multi-surface 2D and 3D overlay editing. You can position layers above edits using classificationType to demonstrate production-like workflows on top of base maps.

Why must I wait for the map to load before initializing the MineMap edit plugin?

The MineMap edit plugin is treated as an external dependency requiring the base map instance to be fully loaded first. Initialization must occur after map load to properly bind the editing workbench to the existing map context.