deckgl-mapbox-style-stack

Place deck.gl layers with beforeId or slot-based ordering for correct Mapbox visual hierarchy.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/tututwo/heather-birthday-itenary --skill deckgl-mapbox-style-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deckgl-mapbox-style-stack
Source: https://github.com/tututwo/heather-birthday-itenary/tree/main/.agents/skills/deckgl-mapbox-style-stack
Command: npx skills add https://github.com/tututwo/heather-birthday-itenary --skill deckgl-mapbox-style-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Deck.gl overlays and Mapbox base styles can clash without a clear insertion order; this guide helps you reliably place layers to achieve correct visual hierarchy.

Core Features & Use Cases

  • Guidance for classic Mapbox styles using beforeId to insert deck.gl layers before labels or roads.
  • Support for Mapbox v3 Standard Style with slot-based placement for reliable ordering.
  • References and patterns to ensure consistent layer interaction and cartographic decisions.

Quick Start

Identify the target Mapbox style, then apply beforeId or slot-based placement to ensure deck.gl layers render in the correct order with your Mapbox layers.

Frequently Asked Questions about deckgl-mapbox-style-stack

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

FAQPage Schema
How do I control deck.gl layer ordering against Mapbox base styles?

To control deck.gl layer ordering, position layers within the Mapbox style stack using beforeId for classic styles or slot-based placement for Mapbox v3 Standard styles to achieve correct visual hierarchy.

What is the difference between beforeId and slot when placing deck.gl layers in Mapbox?

beforeId inserts deck.gl layers before specific classic Mapbox style layers, while slot-based placement positions layers within fixed slots in Mapbox v3 Standard styles to reliably manage layer ordering.

Why does my deck.gl overlay cover Mapbox labels and roads?

Deck.gl overlays cover Mapbox labels when layer ordering is incorrect. Insert deck.gl layers below labels or roads using beforeId or appropriate slots to validate and correct the visual hierarchy.

Does deck.gl interleaved rendering work with Mapbox v3 Standard style?

Interleaved rendering works with Mapbox styles, but v3 Standard style relies on slot-based placement rather than beforeId to reliably position deck.gl layers within the style stack.

How to validate deck.gl layer hierarchy against Mapbox base layers?

Validate deck.gl layer hierarchy by checking the visual stacking order against Mapbox base layers, ensuring overlays apply correct beforeId or slot placement below labels and roads for proper cartographic decisions.

When should I use slot-based placement instead of beforeId for deck.gl layers?

Use slot-based placement for deck.gl layers when working with Mapbox v3 Standard style, and use beforeId for classic Mapbox styles to insert layers before specific labels or roads.