minemap-events-and-picking

Subscribe to MineMap events and unify 2D layer and 3D object picking.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement robust, consistent event subscription across MineMap layers and 3D objects, with reliable lifecycle management and unified picking interactions to build interactive maps.

Core Features & Use Cases

  • Event subscription and lifecycle management using map.on, map.once, and map.off across 2D and 3D objects.
  • Layer-level event proxies and selective binding to reduce overhead and improve responsiveness.
  • Unified picking workflows for 2D layers and 3D scenes using GPU-based picking and feature queries.
  • Demo-oriented guidance for building interactive tools, editors, and debug utilities.

Quick Start

Register a click event on a layer to fetch the first feature and display a popup.

Frequently Asked Questions about minemap-events-and-picking

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

FAQPage Schema
How do I handle map events and 3D object picking in MineMap?

MineMap event subscription handles map events and 3D object picking by providing a unified interface using map.on, map.once, and map.off. It ensures reliable lifecycle management for both 2D layers and 3D scenes.

What is the best way to manage event listener lifecycles across MineMap layers?

The best way to manage event listener lifecycles is using layer-level event proxies with selective binding. This approach reduces overhead and improves responsiveness when subscribing to events across MineMap layers.

Does MineMap support GPU-based picking for 3D scenes?

Yes, MineMap supports GPU-based picking for 3D scenes. The unified picking workflows combine GPU-based picking and feature queries to handle interactions across both 2D layers and 3D scenes.

Can I build interactive UIs and debug tools using MineMap event hooks?

Yes, you can build interactive UIs and debug tools using MineMap event hooks. The system provides demo-oriented guidance for creating interactive tools, editors, and debug utilities.

Why is my MineMap layer event subscription causing performance overhead?

Layer event subscription causes performance overhead if not using selective binding. Applying layer-level event proxies reduces overhead and improves responsiveness during 2D and 3D interactions.

How do I query features from a clicked layer in MineMap?

To query features from a clicked layer in MineMap, register a click event on the target layer. The event hook fetches the first feature and allows you to display a popup with the result.