Landscape Archetype Classification and the Landscape Resilience Explorer (LARE) and is inteded to be an operational framework for spatial risk analysis and Nature-based Solutions planning. It is a modern web-based map viewer application built with Vue 3, Vuetify, and Mapbox GL. This application provides an interactive mapping interface for viewing and interacting with geographic data and map services. The Viewer is seperated from the backend that provides interaction with spatial data served as OGC data service. The interaction is setup with PyWPS processes. For more information on backend, please check https://github.com/openearth/lare.
- 🗺️ Interactive Map Viewing: Powered by Mapbox GL for smooth, interactive map experiences
- 🌐 OGC Services Support: Full support for OGC (Open Geospatial Consortium) services - layers on the map and background processes are all OGC services
- 🎨 Modern UI: Built with Vuetify 3 for a beautiful, responsive user interface
- ⚡ Fast Development: Leverages Vite for instant hot module replacement and fast builds
- 🗃️ State Management: Uses Pinia for efficient state management
- 🚦 Routing: Vue Router for seamless navigation
Before you begin, ensure you have the following installed:
- Node.js (v18 or higher recommended)
- npm package manager
- Mapbox Access Token - Get one for free at mapbox.com
git clone <repository-url>
cd lare-viewernpm installCreate a .env file in the root directory and add your Mapbox access token:
VITE_MAPBOX_TOKEN=your_mapbox_access_token_hereReplace your_mapbox_access_token_here with your actual Mapbox access token.
Note: If you don't have a
.envfile, create one. The application requires this environment variable to display maps.
After installation, your environment should be ready for development.
Start the development server
npm run devThe development server will start and be accessible at http://localhost:3000
The application will automatically reload when you make changes to the source files.
To preview the production build locally:
npm run previewTo lint and automatically fix code issues:
npm run lintThe application is built with OGC (Open Geospatial Consortium) services as its foundation. The architecture follows OGC standards:
- Map Layers: All layers displayed on the map are OGC services (WMS, WMTS, WFS, etc.)
- Background Processes: All background processing operations utilize OGC Web Processing Service (WPS) standards
This architecture ensures interoperability with standard geospatial services and enables seamless integration with various OGC-compliant data sources and processing services.
The application is served on Netlify. You can find everything on the live site.
lare-viewer/
├── src/
│ ├── components/ # Vue components
│ ├── lib/ # Utility libraries and helpers
│ ├── plugins/ # Vue plugins configuration
│ ├── router/ # Vue Router configuration
│ ├── stores/ # Pinia stores
│ ├── styles/ # Global styles
│ └── views/ # Page views
├── public/ # Static assets
└── package.json # Project dependencies and scripts
MIT
Copyright (c) 2025