EN · DE · FR
  • Produkte
  • Preise
  • Dokumentation
  • Anmelden Kostenlos testen

Beispiel MapLibre mit Rasterkarten

Karte

Code

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="https://unpkg.com/maplibre-gl@6.16.0/dist/maplibre-gl.css" />
    <script type="module">
        import * as maplibregl from 'https://unpkg.com/maplibre-gl@6.16.0/dist/maplibre-gl.mjs';
        
        const host = 'https://maps.omniscale.net/v2/your-api-key/style.default/{z}/{x}/{y}.png';

        const attribution = '&copy; 2026 &middot; <a href="https://maps.omniscale.com/">Omniscale</a> ' +
            '&middot; Map data: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap (Lizenz: ODbL)</a>';

        const map = new maplibregl.Map({
          container: 'map',
          center: [8.22, 53.14], // [lng, lat]
          zoom: 13,
          style: {
              version: 8,
              sources: {
                  omniscale: {
                      type: 'raster',
                      tiles: [host],
                      tileSize: 256,
                      attribution: attribution
                  }
              },
              layers: [
                  {
                      id: 'omniscale',
                      type: 'raster',
                      source: 'omniscale'
                  }
              ]
          }
      });
    
    </script>

  </head>
  <body>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

Nützliches

  • Registrieren • Anmelden
  • Produkte & Funktionen
  • Preise & Pläne
  • Interaktive Karte
  • Hilfe, Dokumentation & API
  • Verfügbare Kartenprojektionen

Über uns

  • Impressum
  • AGB
  • Datenschutz

Kontaktdaten

Omniscale GmbH & Co. KG
Moltkestraße 6a
26122 Oldenburg
Deutschland
Zum Kontaktformular ↝

Copyright © 2026 • Omniscale, Kartendaten: OpenStreetMap (Lizenz: ODbL)

* Dieses Angebot richtet sich ausschließlich an Unternehmer im Sinne des § 14 BGB. Verträge mit Verbrauchern im Sinne des § 13 BGB werden nicht geschlossen. Alle Preise zzgl. ges. MwSt.