Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/medienhaus/osm-server
100% self-hosted OpenStreetMap tile server using maptiler/tileserver-gl
https://github.com/medienhaus/osm-server
leaflet mapbox maptiler openstreetmap osm tileserver-gl
Last synced: 27 days ago
JSON representation
100% self-hosted OpenStreetMap tile server using maptiler/tileserver-gl
- Host: GitHub
- URL: https://github.com/medienhaus/osm-server
- Owner: medienhaus
- License: agpl-3.0
- Created: 2022-04-08T14:54:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T08:21:25.000Z (7 months ago)
- Last Synced: 2024-06-05T09:44:07.434Z (7 months ago)
- Topics: leaflet, mapbox, maptiler, openstreetmap, osm, tileserver-gl
- Language: JavaScript
- Homepage:
- Size: 2.29 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### medienhaus/
Customizable, modular, free and open-source environment for decentralized, distributed communication and collaboration without third-party dependencies.
[Website](https://medienhaus.dev/) — [Fediverse](https://chaos.social/@medienhaus)
# medienhaus/osm-server
100% self-hosted OpenStreetMap tile server using [maptiler/tileserver-gl](https://github.com/maptiler/tileserver-gl). The provided styles stem from [openmaptiles/osm-bright-gl-style](https://github.com/openmaptiles/osm-bright-gl-style/), [openmaptiles/maptiler-toner-gl-style](https://github.com/openmaptiles/maptiler-toner-gl-style), and [openmaptiles/maptiler-basic-gl-style](https://github.com/openmaptiles/maptiler-basic-gl-style) respectively; we only modified them to load all resources from local files instead of publicly hosted CDNs.## Instructions
This repository is only providing the structure for running the tile server. It assumes that you have placed a `planet.mbtiles` file in the root directory of the project. If you want to know more about generating such a file (or smaller variants that only include certain parts of the planet) check out the [onthegomap/planetiler](https://github.com/onthegomap/planetiler) repository.
1. Place `planet.mbtiles` in the project root
2. Run `npm i && node ./fonts/generate.js` to generate the necessary `.pbf` files for all fonts referenced in the provided styles
3. Run `docker-compose up` to start the tile server on port 8081