New advertisers: 50% off your first month with code FIRSTMONTHSee slots
mapbox avatar

Mapbox Store Locator Patterns

Store locator patterns for Mapbox GL JS covering markers, filtering, distance, and synced lists.

skills.sh installs
1.8K
GitHub stars
87
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers marker display, search and category filtering, distance calculation from the user, and interactive lists synced with the map
  • Includes GeoJSON location data structure, a marker strategy by count (HTML markers, symbol layers, clustering), and flyTo and popup behavior
  • Uses @turf/turf for spatial calculations and the built-in mapboxgl.GeolocateControl for the user's location indicator
  • Designed for store locators, restaurant finders, and office directories with optional directions integration

Install

$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-store-locator-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Store Locator Patterns Skill

Comprehensive patterns for building store locators, restaurant finders, and location-based search applications with Mapbox GL JS. Covers marker display, filtering, distance calculation, interactive lists, and directions integration.

When to Use This Skill

Use this skill when building applications that:

  • Display multiple locations on a map (stores, restaurants, offices, etc.)
  • Allow users to filter or search locations
  • Calculate distances from user location
  • Provide interactive lists synced with map markers
  • Show location details in popups or side panels
  • Integrate directions to selected locations

Dependencies

Required:

  • Mapbox GL JS v3.x
  • @turf/turf - For spatial calculations (distance, area, etc.)

Installation:

npm install mapbox-gl @turf/turf

Core Architecture

Pattern Overview

A typical store locator consists of:

Details

Repository
github.com/mapbox/mapbox-agent-skills
Categories
Frontend & UI Code, Browser Automation & Scraping
First seen
May 16, 2026

More from mapbox/mapbox-agent-skills

All 18

Similar to Mapbox Store Locator Patterns

More Frontend & UI Code