A Responsive Open Source Store Locator built with Leaflet and Bootstrap, based on the Mapbox JS Example
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
README.md
demo.html
img.png

README.md

leaflet-store-locator

A responsive store locator based on the Mapbox JS example, tweaked to use Leaflet 1.0, Google basemaps and custom icons. The sidebar uses a simple jQuery filter function (thanks jsfiddle). The nearest store function uses TurfJS, based loosely on this example, also from Mapbox. The production version uses surge.sh for deployment.

Demo

Stores are loaded via a stores.csv file in the assets/data/ folder. The search is done on the entire sidebar list, so this may not be the best option for extremely large data sets.