
Mapbox Store Locator Patterns
This is a solid reference for building any kind of location finder with Mapbox. It walks through the full stack: GeoJSON structure, marker strategies based on count (HTML markers under 100 locations, symbol layers for 100-1000, clustering beyond that), interactive sidebars, and distance calculations with Turf.js. The guidance on when to use GPU-rendered symbol layers versus DOM markers is especially practical, and the code samples cover the annoying details like syncing map clicks with sidebar scrolling. If you're building a store locator, restaurant finder, or office directory, this gives you the patterns to avoid reinventing everything from scratch.
- skills.sh installs
- 1.7K
- GitHub stars
- 86
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-store-locator-patterns --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/mapbox/mapbox-agent-skills
- Category
- AI & Agent Building
- First seen
- May 16, 2026
More from mapbox/mapbox-agent-skills
All 18- Mapbox Mcp Devkit Patterns1.6K
- Mapbox Ios Patterns1.5K
- Mapbox Android Patterns1.5K
- Mapbox Google Maps Migration1.5K
- Mapbox Mcp Runtime Patterns1.4K
- Mapbox Maplibre Migration1.4K
- Mapbox Location Grounding1.3K
- Mapbox Web Integration Patterns2.7K
- Mapbox Web Performance Patterns2.5K
- Mapbox Style Patterns2.4K
- Mapbox Geospatial Operations2.3K
- Mapbox Data Visualization Patterns2.2K
- Mapbox Cartography2.2K
- Mapbox Style Quality2K
- Mapbox Token Security2K
- Mapbox Search Integration1.9K
- Mapbox Search Patterns1.9K