2026-05-30 17:15:44 +00:00
|
|
|
|
# Martin Tile Server – Endpunkte
|
2026-05-30 15:57:07 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# Sobald der Server laeuft (Port 3000, via NPM erreichbar):
|
2026-05-30 15:57:07 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# Health-Check:
|
|
|
|
|
|
# http://SERVER:3000/health
|
2026-05-30 15:57:07 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# Katalog aller geladenen Sources (MBTiles/PMTiles):
|
|
|
|
|
|
# http://SERVER:3000/catalog
|
2026-05-30 15:57:07 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# Vektor-Tiles (OSM, OpenMapTiles-Schema – PBF):
|
|
|
|
|
|
# http://SERVER:3000/osm/{z}/{x}/{y}
|
|
|
|
|
|
# TileJSON-Metadaten: http://SERVER:3000/osm
|
2026-05-30 15:57:07 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# Raster-Tiles (Satellit – PNG, direkt aus raster MBTiles):
|
|
|
|
|
|
# http://SERVER:3000/satellite/{z}/{x}/{y}
|
|
|
|
|
|
# TileJSON-Metadaten: http://SERVER:3000/satellite
|
2026-05-30 15:57:07 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# MapLibre GL Style (fuer Clients die selbst rendern):
|
|
|
|
|
|
# http://SERVER:3000/styles/osm-bright
|
|
|
|
|
|
# http://SERVER:3000/styles/satellite-hybrid
|
2026-05-30 15:57:07 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# Sprites (Icons, Pins, eigene Marker):
|
|
|
|
|
|
# http://SERVER:3000/sprites/default.json
|
|
|
|
|
|
# http://SERVER:3000/sprites/default.png
|
|
|
|
|
|
#
|
|
|
|
|
|
# Fonts (Karten-Labels):
|
|
|
|
|
|
# http://SERVER:3000/fonts/{font_name}/{start}-{end}.pbf
|
2026-05-30 15:57:07 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# MapLibre GL – Style direkt einbinden (empfohlen fuer alle Clients):
|
2026-05-30 15:57:07 +00:00
|
|
|
|
# new maplibregl.Map({
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# style: 'http://SERVER:3000/styles/osm-bright',
|
2026-05-30 15:57:07 +00:00
|
|
|
|
# container: 'map'
|
|
|
|
|
|
# });
|
2026-05-30 16:01:28 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# Leaflet.js – Raster-Tiles (Satellit):
|
|
|
|
|
|
# L.tileLayer('http://SERVER:3000/satellite/{z}/{x}/{y}', {
|
|
|
|
|
|
# attribution: 'Sentinel-2 cloudless',
|
|
|
|
|
|
# maxZoom: 14
|
|
|
|
|
|
# }).addTo(map);
|
|
|
|
|
|
#
|
|
|
|
|
|
# Home Assistant custom:map-card – Satellit (Raster, direkt nutzbar):
|
|
|
|
|
|
# tile_layer_url: 'http://SERVER:3000/satellite/{z}/{x}/{y}'
|
2026-05-30 16:01:28 +00:00
|
|
|
|
#
|
2026-05-30 17:15:44 +00:00
|
|
|
|
# NPM Advanced Config (Caching-Header, einmalig eintragen):
|
|
|
|
|
|
# add_header Cache-Control "public, max-age=86400, stale-while-revalidate=3600" always;
|