0.1.14 • Published 9 months ago
agvmap-react v0.1.14
Geospatial Data Visualization Tool
A tool designed to visualize geospatial data on a map, integrating custom layers fetched from a REST API, and displaying relevant time-series data. This project is built using React, with react-map-gl for map integration.
Project Setup
To run this project locally, you'll need the following:
- MapTiler API Key for basemap style
- Sentinel Hub Client ID and Secret for fetching data and imagery from sentinel hubs
the following environment variables are required:
VITE_MAPTILER_ACCESS_KEY=your-maptiler-key
VITE_SENTINAL_HUB_CLIENT_ID=your-sentinal-hub-api-key
VITE_SENTINAL_HUB_CLIENT_SECRET=your-sentinal-hub-client-secret
VITE_SENTINAL_HUB_WMTS_ID=sentinal-hub-wmts-layer-id
VITE_AGV_API_USERNAME=your_username
VITE_AGV_API_PASSWORD=your_passwordSteps to Setup:
- Rename
env.exampleto.env. - Paste the API keys and credentials into the
.envfile. - in the project directory, run
yarn installin order to install required packages - run
yarn devto start the development server - goto
localhost:3000and you shall see the app running.
USage example
<AgvMap
configs={{
VITE_MAPTILER_ACCESS_KEY: your-value,
VITE_SENTINAL_HUB_CLIENT_ID: your-value,
VITE_SENTINAL_HUB_CLIENT_SECRET: your-value,
VITE_SENTINAL_HUB_WMTS_ID: your-value,
}}
requestHeaders={{
Authentication: your-value
}}
>Project Goal
Implement a map component with custom layers fetched from a REST API, to be integrated into a dashboard for visualization and analysis.
Observations
- A marker may belong to a farm, and a farm can have multiple markers.
- a farm can have many plots
FAQs
- Why does the backend throw a CORS error?
- Only port 3000 is allowed on the backend.
- What is the difference between forecast markers and station markers?
- If a marker is associated with a device, it represents a station marker. Forecast markers, on the other hand, are not associated with devices, and their data is fetched from a third-party service.
0.1.14
9 months ago
0.1.13
9 months ago
0.1.10
9 months ago
0.1.12
9 months ago
0.1.9
9 months ago
0.1.8
9 months ago
0.1.0
10 months ago
0.1.2
10 months ago
0.1.1
10 months ago
0.0.26
10 months ago
0.1.7
10 months ago
0.0.27
10 months ago
0.1.4
10 months ago
0.1.3
10 months ago
0.1.6
10 months ago
0.1.5
10 months ago
0.0.25
10 months ago
0.0.24
10 months ago
0.0.23
10 months ago
0.0.22
10 months ago
0.0.21
10 months ago