A React application that uses Mapbox GL JS to display parcel data on a map. This project demonstrates how to integrate Mapbox with React, add custom layers, and handle user interactions.
- Clone the repository:
git clone https://github.com/your-username/mapbox-parcel-viewer.git
cd mapbox-parcel-viewer
- Install the dependencies:
npm install
- Create a .env file in the root directory and add your Mapbox access token:
REACT_APP_MAPBOXGL_ACCESS_TOKEN=your_mapbox_access_token
-
Start the development server:
HTTP=true npm start
-
Open your browser and navigate to https://localhost:3000.
- Display parcel data on a Mapbox map.
- Add custom layers and markers.
- Handle user interactions to display coordinates and other information.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.