This application is developed to let users geocode address and zoom into that location. In this application tries to replicate google maps search functionality. We use Openlayers V6, an open-source JavaScript library for mapping.
The associated blog post can be found
That's pretty easy. The application is hosted on github pages which can be accessed 🔗 here
To use the application on your local machine, simply follow the steps mentioned below.
- Fork the repository
- Clone the Repo by going to your local Git Client and pushing in the command:
git clone https://github.com/amanbagrecha/mapbox-search-functionality.git
-
🔑 Edit
MAPBOX_API_KEY
: The search funtionality would only work after editing theMAPBOX_API_KEY
inmap.js
. -
Run the application by pushing in the command:
start index.html
- Store API key in backend using firebase.
- Load layers from geoserver
- Allow for selection of feature on the layer