rd13_tile_server/docs/api-endpoints.md

45 lines
1.5 KiB
Markdown
Raw Normal View History

# Allgemeine Tile-Server Endpunkte
#
# Sobald der Server läuft, sind folgende Endpoints verfügbar:
#
# Web-Interface:
# http://SERVER:PORT/
#
# Styles (Raster-Tiles, PNG):
# http://SERVER:PORT/styles/osm-bright/{z}/{x}/{y}.png ← OSM
# http://SERVER:PORT/styles/satellite-hybrid/{z}/{x}/{y}.png ← Satellit
# http://SERVER:PORT/styles/osm-bright/{z}/{x}/{y}@2x.png ← Retina
#
# Daten (Vektor-Tiles, PBF):
# http://SERVER:PORT/data/osm-openmaptiles/{z}/{x}/{y}.pbf
# http://SERVER:PORT/data/satellite/{z}/{x}/{y}.png
#
# TileJSON (Metadaten für Leaflet, MapLibre, etc.):
# http://SERVER:PORT/styles/osm-bright.json
# http://SERVER:PORT/data/osm-openmaptiles.json
#
# WMTS (für QGIS, ArcGIS, etc.):
# http://SERVER:PORT/styles/osm-bright/wmts
#
# Leaflet.js Beispiel:
# L.tileLayer('http://SERVER:PORT/styles/osm-bright/{z}/{x}/{y}.png', {
# attribution: '© OpenMapTiles © OpenStreetMap contributors',
# maxZoom: 20
# }).addTo(map);
#
# MapLibre GL Beispiel:
# new maplibregl.Map({
# style: 'http://SERVER:PORT/styles/osm-bright.json',
# container: 'map'
# });
#
# Home Assistant configuration.yaml:
# map:
# lovelace card (custom:map-card oder built-in):
# tile_layer_url: 'http://SERVER:PORT/styles/osm-bright/{z}/{x}/{y}.png'
# tile_layer_attribution: '© OpenMapTiles © OpenStreetMap contributors'
#
# Für Home Assistant custom:map-card (HACS):
# tile_layer_url: 'http://SERVER:PORT/styles/osm-bright/{z}/{x}/{y}.png'
# tile_layer_max_zoom: 19