All skills
mapbox avatar

/mapbox-style-patterns

@9077a82 official
by mapboxmapbox/mapbox-agent-skills80 stars
17

Common style patterns, layer configurations, and recipes for typical mapping scenarios including restaurant finders, real estate, data visualization, navigation, delivery/logistics, and more. Use when implementing specific map use cases or looking for proven style patterns.

Use this Skill: https://skilld.dev/gh/mapbox/mapbox-agent-skills/mapbox-style-patterns

This session only. Nothing lands on disk.

referencesnavigation.md

≈888 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Pattern 4: Navigation/Routing Map

Use case: Turn-by-turn directions, route planning, delivery apps

Visual requirements:

  • Route highly visible
  • Current location always clear
  • Turn points obvious
  • Street names readable
  • Performance optimized

Recommended layers:

{
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "#ffffff"
      }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "mapbox-streets",
      "source-layer": "water",
      "paint": {
        "fill-color": "#a8d8ea"
      }
    },
    {
      "id": "landuse",
      "type": "fill",
      "source": "mapbox-streets",
      "source-layer": "landuse",
      "paint": {
        "fill-color": [
          "match",
          ["get", "class"],
          "park",
          "#d4edda",
          "hospital",
          "#f8d7da",
          "school",
          "#fff3cd",
          "#e9ecef"
        ],
        "fill-opacity": 0.5
      }
    },
    {
      "id": "roads-background",
      "type": "line",
      "source": "mapbox-streets",
      "source-layer": "road",
      "paint": {
        "line-color": "#333333",
        "line-width": {
          "base": 1.5,
          "stops": [
            [10, 2],
            [15, 8],
            [18, 20]
          ]
        },
        "line-opacity": 0.3
      }
    },
    {
      "id": "roads-foreground",
      "type": "line",
      "source": "mapbox-streets",
      "source-layer": "road",
      "paint": {
        "line-color": "#ffffff",
        "line-width": {
          "base": 1.5,
          "stops": [
            [10, 1],
            [15, 6],
            [18, 16]
          ]
        }
      }
    },
    {
      "id": "route-casing",
      "type": "line",
      "source": "route",
      "paint": {
        "line-color": "#0d47a1",
        "line-width": {
          "base": 1.5,
          "stops": [
            [10, 8],
            [15, 16],
            [18, 32]
          ]
        },
        "line-opacity": 0.4
      }
    },
    {
      "id": "route-line",
      "type": "line",
      "source": "route",
      "paint": {
        "line-color": "#2196f3",
        "line-width": {
          "base": 1.5,
          "stops": [
            [10, 6],
            [15, 12],
            [18, 24]
          ]
        }
      }
    },
    {
      "id": "user-location",
      "type": "circle",
      "source": "user-location",
      "paint": {
        "circle-radius": 8,
        "circle-color": "#2196f3",
        "circle-stroke-color": "#ffffff",
        "circle-stroke-width": 3
      }
    },
    {
      "id": "user-location-pulse",
      "type": "circle",
      "source": "user-location",
      "paint": {
        "circle-radius": {
          "base": 1,
          "stops": [
            [0, 16],
            [1, 24]
          ]
        },
        "circle-color": "#2196f3",
        "circle-opacity": {
          "base": 1,
          "stops": [
            [0, 0.4],
            [1, 0]
          ]
        }
      }
    },
    {
      "id": "turn-arrows",
      "type": "symbol",
      "source": "route-maneuvers",
      "layout": {
        "icon-image": ["get", "arrow-type"],
        "icon-size": 1.5,
        "icon-rotation-alignment": "map",
        "icon-rotate": ["get", "bearing"]
      }
    }
  ]
}

Key features:

  • Thick, high-contrast route (blue on white)
  • Pulsing user location indicator
  • Turn arrows at maneuver points
  • Simplified background (focus on route)
  • Color-coded land use for context

Source: SKILL.md on GitHub

No alerts14d5 checks · Risk SAFE
  • Gen Agent Trust Hub14d

    This skill provides Mapbox map style patterns and configuration recipes. No security vulnerabilities, malicious code, or suspicious behaviors were detected. All external resource references are standard Mapbox vendor services.

  • Socket14d

    No alerts

  • Snyk14d

    Risk: LOW · No issues

  • Runlayer6mo

    1/2 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 9077a82. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 9 hours ago.

Activeupdated 2 weeks ago
  • mapbox
  • cartography
  • style-patterns
  • layer-configuration
  • poi-finder
  • real-estate
  • data-visualization
  • navigation
  • delivery-logistics

README badge

README badge for mapbox/mapbox-agent-skills/mapbox-style-patterns

Provides battle-tested Mapbox style layer configurations and recipes for common mapping scenarios including restaurant finders, real estate, data visualization, navigation, and delivery tracking. Use this when building a new map style or optimizing layer configurations for a specific use case like POI discovery or logistics tracking.

Generated from the current SKILL.md.

Does this skill cover dark mode styles?
Yes. The skill includes a Dark Mode / Night Theme pattern in references/dark-mode.md with near-black backgrounds and reduced brightness suitable for low-light environments.
Can I use these patterns for real estate maps?
Yes. The skill provides a Real Estate pattern in references/real-estate.md that handles property boundaries, price color-coding, and amenity markers.
Does this include delivery/logistics tracking?
Yes. The Delivery/Logistics pattern in references/delivery-logistics.md covers real-time tracking, zones, driver markers, and ETA badges, including pulse animations for customer markers.
How do I optimize performance for dense data?
The skill provides a Simplified by Zoom pattern that filters layers based on zoom level, and references/expressions-clustering.md covers data-driven expressions and clustering for dense POIs.
Are these patterns tested for mobile and desktop?
The skill includes a visual regression checklist covering zoom levels, mobile (375px), desktop (1920px), dense/sparse data, label collision, and color contrast, but you must run these tests yourself.

Generated from the current SKILL.md. These answers refresh after source changes.