mapbox-store-locator-patterns
Audited by Runlayer on Feb 22, 2026
Malicious tool definition detected
Tool: AGENTS.md Description: # Store Locator Patterns Quick reference for building store locators and location finders with Mapbox.
Malicious tool definition detected
Tool: SKILL.md [1/3] Description: --- name: mapbox-store-locator-patterns description: Common patterns for building store locators, restaurant finders, and location-based search applications with Mapbox.
Tool: SKILL.md [2/3] Description: Build the list on load map.on('load', () => { buildLocationList(stores); }); ``` ### Step 4: Add Search/Filter Functionality **Text Search:** ```javascript function filterStores(searchTerm) { const filtered = { type: 'FeatureCollection', features: stores.features.filter((store) => { const name = store.properties.name.toLowerCase(); const address = store.properties.address.toLowerCase(); const search = searchTerm.toLowerCase(); return name.includes(search) || add
Tool: SKILL.md [3/3] Description: Best Practices ### Data Management ```javascript // ✅ GOOD: Load data once, filter in memory const allStores = await fetch('/api/stores').then((r) => r.json()); function filterStores(criteria) { return { type: 'FeatureCollection', features: allStores.features.filter(criteria) }; } // ❌ BAD: Fetch on every filter async function filterStores(criteria) { return await fetch(`/api/stores?filter=${criteria}`).then((r) => r.json()); } ``` ### Error Handling ```javascri