-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add versatiles, a tile server for Open Street Map Data (#270)
* feat: Add versatiles * chore: Bump versatiles roleversion v0.12.6-1 -> v0.12.6-1 * feat: add versatiles, reorder alpabetically * docs: Add versatile docs * Minor fixups --------- Co-authored-by: Slavi Pantaleev <[email protected]>
- Loading branch information
1 parent
6754f8a
commit 922fc27
Showing
7 changed files
with
111 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Versatiles | ||
|
||
![Versatiles Logo](../assets/versatiles-logo.png) | ||
|
||
[Versatiles](https://versatiles.org) is a a free stack for generating and serving vector tiles based on [OpenStreetMap](https://openstreetmap.com) data. | ||
|
||
|
||
## Dependencies | ||
|
||
This service requires the following other services: | ||
|
||
- a [Traefik](traefik.md) reverse-proxy server | ||
|
||
|
||
## Configuration | ||
|
||
To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation](../installing.md) process: | ||
|
||
```yaml | ||
######################################################################## | ||
# # | ||
# versatiles # | ||
# # | ||
######################################################################## | ||
|
||
versatiles_enabled: true | ||
|
||
versatiles_hostname: tiles.example.com | ||
|
||
######################################################################## | ||
# # | ||
# /versatiles # | ||
# # | ||
######################################################################## | ||
``` | ||
|
||
In the example configuration above, we configure the service to be hosted at `https://tiles.example.com/`. | ||
|
||
|
||
## Usage | ||
|
||
After installation, you should be able to access your new Versatiles instance at: `https://tiles.example.com`. | ||
|
||
![Map of Dresden](../assets/versatiles-map-example.jpeg) | ||
|
||
|
||
To embed the map in a website Copy & Paste the following snippet and replace `tiles.example.com` with your `versatiles_hostname`. | ||
|
||
```html | ||
<!-- add MapLibre JavaScript and CSS --> | ||
<script src="https://tiles.example.com/assets/maplibre-gl/maplibre-gl.js"></script> | ||
<link href="https://tiles.example.com/assets/maplibre-gl/maplibre-gl.css" rel="stylesheet" /> | ||
|
||
<!-- add container for the map --> | ||
<div id="map" style="width:100%;aspect-ratio:16/9"></div> | ||
|
||
<!-- start map --> | ||
<script> | ||
new maplibregl.Map({ | ||
container: 'map', | ||
style: 'https://tiles.example.com/assets/styles/colorful.json' | ||
}).addControl(new maplibregl.NavigationControl()); | ||
</script> | ||
``` | ||
|
||
For adjustments, check out the amazing [examples from maplibre](https://maplibre.org/maplibre-gl-js/docs/examples/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters