rd13_tile_server/docs/api-endpoints.md
Conrad Schulz 7dd8b44ea8 feat: add Home Assistant support
- docs/homeassistant-config.md: Lovelace Map Card + custom:map-card (HACS)
- docs/api-endpoints.md: HA Tile-Layer Beispiel ergänzt
- .github/copilot-instructions.md: HA als Zieldienst aufgeführt
- nginx/nginx.conf: HA in CORS-Kommentar ergänzt
2026-05-30 16:01:28 +00:00

1.5 KiB
Raw Blame 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