Skip to content

Map Explorer is a React and TypeScript-based mapping application integrating OpenStreetMap API. It features Context API for state management, responsive UI improvements, and accessibility enhancements. Users can search locations, view details, and interact with dynamic maps using Leaflet.

Notifications You must be signed in to change notification settings

maitepv87/map-explorer

Repository files navigation

Map Explorer

A mapping application integrating OpenStreetMap API, React, TypeScript, and Context API for modular state management.

Description

Map Explorer is a technical demo showcasing how to interact with OpenStreetMap API using React, TypeScript, and Leaflet. It features Context API for centralized state management, enabling seamless data handling and improved scalability. The project allows users to search for locations and visualize them on an interactive map, making it an excellent portfolio piece for working with geospatial data.

Features

  • Search for places using OpenStreetMap’s Nominatim API
  • Display a dynamic marker for selected locations
  • Smooth map navigation (flyTo) upon selecting a place
  • Responsive UI for better user experience

Technologies Used

  • React – Frontend library for building modular UI components
  • Context API & useReducer – Centralized state management for scalability
  • TypeScript – Static typing for better reliability and maintainability
  • Leaflet & react-leaflet – Interactive mapping with OpenStreetMap integration
  • OpenStreetMap API (Nominatim) – Location search and geocoding
  • Vite – Fast development and optimized build process
  • TailwindCSS – Utility-based styling for responsive and modern UI
  • ARIA Labels & Accessibility Best Practices – Improved usability for all users

Getting Started

Installation & Setup

To run the project locally, follow these steps:

Clone the repository:

git clone https://github.com/maitepv87/map-explorer.git
cd map-explorer

Install dependencies:

npm install

Set up environment variables in a .env file:

VITE_API_URL=https://nominatim.openstreetmap.org

Start the development server:

npm run dev

Then open http://localhost:3000 in your browser.

Designed for modularity, scalability, and clarity.

Future Enhancements

  • Save favorite locations for quick access
  • Enhance map styles and UI interactions
  • Integrate OpenRouteService API for route navigation

About

Map Explorer is a React and TypeScript-based mapping application integrating OpenStreetMap API. It features Context API for state management, responsive UI improvements, and accessibility enhancements. Users can search locations, view details, and interact with dynamic maps using Leaflet.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published