Skip to content

ammar450/MapBox-Store-Locator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Store Locator Web Map

This project implements a web-based store locator using Mapbox GL JS. Users can search for stores within a specified location and view them on a map. The application fetches store data from the Mapbox Geocoding API by dividing the specified location into multiple bounding boxes and fetching stores without worrying about the limit. You can adjust the size of bounding boxes according to your need . It then displays the stores on the map with custom markers

Features

  • Search for stores by location and store name
  • Display stores on the map with custom markers
  • Click on markers to view store details
  • Filter stores based on location and store name

Getting Started

  1. Clone the repository:

    [git clone https://github.com/your-username/store-locator-web-map.git](https://github.com/ammar450/MapBox-Store-Locator.git)
  2. Navigate to the project directory:

    cd store-locator-web-map
  3. Open the index.html file in your web browser.

  4. Enter a location and store name in the search bar and click "Search" to find stores.

Usage

  • Enter a location (e.g., city or country) in the "Enter location" input field.
  • Enter a store name in the "Enter store name" input field (optional).
  • Click the "Search" button to search for stores within the specified location.
  • Click on a store in the sidebar to fly to its location on the map.

Dependencies

API Key

To use this application, you need a Mapbox access token. You can obtain one by signing up at Mapbox. Once you have an access token, replace 'YOUR_MAPBOX_ACCESS_TOKEN' in the main.js file with your actual access token.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Fetch More then 10 stores for Your given location

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published