EN · DE · FR
  • Products
  • Pricing
  • Documentation
  • Log in Try for free

Example with MapLibre using raster tiles

Map

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>

Help and Service

  • Register • Log in
  • Products & Functions
  • Plans and Pricing
  • Interactive map
  • Help, Documentation & API
  • Available projections

About us

  • Legal
  • Terms and Conditions
  • Privacy

Contact details

Omniscale GmbH & Co. KG
Moltkestraße 6a
26122 Oldenburg
Germany
Go to contact form ↝

Copyright © 2026 • Omniscale, Map data: OpenStreetMap (License: ODbL)

* For business customers only. We do not enter into contracts with consumers within the meaning of Section 13 of the German Civil Code (BGB). All prices are listed excluding VAT.