https://github.com/iwatkot/maps4fsui
Web interface for the Maps4FS - app to generate maps for Farming Simualtor using real-world data.
https://github.com/iwatkot/maps4fsui
dem dtm farming-simulator javascript leaflet maps4fs nextjs openstreetmap osm
Last synced: 2 months ago
JSON representation
Web interface for the Maps4FS - app to generate maps for Farming Simualtor using real-world data.
- Host: GitHub
- URL: https://github.com/iwatkot/maps4fsui
- Owner: iwatkot
- License: other
- Created: 2025-08-15T16:22:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-03-17T21:07:49.000Z (3 months ago)
- Last Synced: 2026-03-18T11:43:41.881Z (3 months ago)
- Topics: dem, dtm, farming-simulator, javascript, leaflet, maps4fs, nextjs, openstreetmap, osm
- Language: JavaScript
- Homepage: https://maps4fs.xyz
- Size: 1.44 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/iwatkot/maps4fs)
[](https://github.com/iwatkot/atlasfs)
[](https://github.com/iwatkot/maps4fswindows)
[](https://github.com/iwatkot/pydtmdl)
[](https://github.com/iwatkot/pygmdl)
[](https://github.com/iwatkot/maps4fsapi)
[](https://github.com/iwatkot/maps4fsui)
[](https://github.com/iwatkot/maps4fsdata)
[](https://github.com/iwatkot/maps4fschromadocs)
[](https://github.com/iwatkot/maps4fsupgrader)
[](https://github.com/iwatkot/maps4fsstats)
[](https://github.com/iwatkot/maps4fsbot)
[](https://github.com/iwatkot/maps4fslocale)

[](https://discord.gg/wemVfUUFRA)
[](https://hub.docker.com/r/iwatkot/maps4fsui)
[](https://hub.docker.com/r/iwatkot/maps4fsui)
[](https://hub.docker.com/r/iwatkot/maps4fsui)
[](https://github.com/iwatkot/maps4fsui/releases)
[](https://github.com/iwatkot/maps4fsui/issues)
[](https://github.com/iwatkot/maps4fsui/stargazers)
# Maps4FS UI
A modern web interface for generating custom Farming Simulator maps using real-world data. This Next.js application provides an intuitive way to create maps for Farming Simulator 22 and 25 games with customizable terrain, textures, and geographic features.
## Features
### πΊοΈ Map Generation
- **Real-world terrain**: Generate maps based on actual geographic locations using coordinates
- **Multiple map sizes**: Support for 2048x2048 to 16384x16384 meter maps with custom sizing
- **Multiple games**: Compatible with Farming Simulator 22 and 25
- **Rotation support**: Rotate maps to align with desired orientations
### π Data Sources
- **Public DTM providers**: Global elevation data from SRTM and other sources
- **Custom OSM files**: Upload your own OpenStreetMap data for specialized areas
- **Multiple resolution options**: Choose from various elevation data resolutions
### π¨ Customization Options
- **Terrain modification**: Adjust water depth, add foundations, create plateaus
- **Background generation**: Generate custom backgrounds with water features
- **Texture schemas**: Create and edit custom texture mappings
- **Tree schemas**: Define custom vegetation patterns
### π Map Management
- **My Maps**: Browse and manage your generated maps
- **Preview gallery**: View map previews including terrain, satellite imagery, and textures
- **Map duplication**: Clone existing maps with modified settings
- **Download management**: Export completed maps for use in Farming Simulator
### βοΈ Advanced Settings
- **DEM configuration**: Fine-tune elevation model processing
- **Texture settings**: Customize material and texture generation
- **I3D settings**: Configure 3D model export parameters
- **Satellite imagery**: Integrate aerial photography data
## Technology Stack
- **Frontend**: Next.js 15 with React 19
- **Styling**: Tailwind CSS 4
- **3D Visualization**: Three.js with React Three Fiber
- **Maps**: Leaflet with React Leaflet
- **Data Processing**: OSM to GeoJSON conversion
- **File Handling**: Archive creation and management
## Getting Started
### Prerequisites
- Node.js 18+
- A running Maps4FS backend service
### Installation
1. Clone the repository:
```bash
git clone https://github.com/iwatkot/maps4fsuib.git
cd maps4fsuib
```
2. Install dependencies:
```bash
npm install
```
3. Configure environment variables:
```bash
cp .env.example .env.local
# Edit .env.local with your backend URL and other settings
```
4. Start the development server:
```bash
npm run dev
```
5. Open [http://localhost:3000](http://localhost:3000) in your browser
### Environment Variables
- `NEXT_PUBLIC_BACKEND_URL`: URL of the Maps4FS backend service
- `NEXT_PUBLIC_APP_ENV`: Application environment (maps4fs for public version)
- `NEXT_PUBLIC_BEARER_TOKEN`: Authentication token for backend requests
- `NEXT_PUBLIC_MFS_ROOT_DIR`: Root directory for map storage
## Docker Deployment
### Using Docker Compose
```bash
docker-compose up -d
```
### Building Docker Image
```bash
docker build -t maps4fsui .
docker run -p 3000:3000 maps4fsui
```
## Project Structure
- `/src/app` - Next.js app router pages and layouts
- `/src/components` - Reusable React components
- `/src/hooks` - Custom React hooks for API integration
- `/src/utils` - Utility functions and helpers
- `/src/config` - Configuration files and validation schemas
- `/public` - Static assets and files
## Contributing
This repository is part of the larger Maps4FS ecosystem. For contribution guidelines and project information, please refer to the [main Maps4FS repository](https://github.com/iwatkot/maps4fs).
## Related Projects
- [maps4fs](https://github.com/iwatkot/maps4fs) - Core Python library
- [maps4fsapi](https://github.com/iwatkot/maps4fsapi) - Backend API service
- [maps4fsdata](https://github.com/iwatkot/maps4fsdata) - Data processing tools
- [maps4fsstats](https://github.com/iwatkot/maps4fsstats) - Usage statistics
- [maps4fsbot](https://github.com/iwatkot/maps4fsbot) - Discord bot integration