EN DE
  • Registrieren
  • Login

Hilfe

Verwendung in Webanwendungen

  • API
  • FAQ
  • Web-Anwendungen
  • Desktop-Anwendungen
  • Drucken

Verwendung in Webanwendungen

Sie haben die Möglichkeit den Dienst gekachelt oder als einzelnes Bild einzubinden. Nutzen Sie hierzu folgenden URLs:

URL zum Einbinden des Kartendienstes
https://maps.omniscale.net/v2/ihr-api-key/style.default/map
URL zum Einbinden des Kartendienstes im Graustufen-Layout
https://maps.omniscale.net/v2/ihr-api-key/style.grayscale/map

Beispiele mit Leaflet

Leaflet Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css' }}' />
    <script src='https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js'></script>
    <script type='text/javascript'>
      function initMap() {
        var host = 'https://maps.omniscale.net/v2/{id}/style.default/{z}/{x}/{y}.png';

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

        var map = L.map('map').setView([53.14, 8.22], 13);
          L.tileLayer(host, {
            id: 'your-api-key',
            attribution: attribution
          }).addTo(map);
        map.attributionControl.setPrefix(false);
      }
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

Leaflet mit Graustufenkarte Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css' }}' />
    <script src='https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js'></script>
    <script type='text/javascript'>
      function initMap() {
        var host = 'https://maps.omniscale.net/v2/{id}/style.grayscale/{z}/{x}/{y}.png';

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

        var map = L.map('map').setView([53.14, 8.22], 13);
          L.tileLayer(host, {
            id: 'your-api-key',
            attribution: attribution
          }).addTo(map);

        map.attributionControl.setPrefix(false);
      }
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

Leaflet mit HQ/Retina Kacheln Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css' }}' />
    <script src='https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js'></script>
    <script type='text/javascript'>
      function initMap() {
        var host = 'https://maps.omniscale.net/v2/{id}/style.default/{z}/{x}/{y}.png?hq={hq}';

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

        var map = L.map('map').setView([53.14, 8.22], 13);
          L.tileLayer(host, {
            id: 'your-api-key',
            hq: L.Browser.retina,
            attribution: attribution
          }).addTo(map);
        map.attributionControl.setPrefix(false);
      }
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

Beispiele mit OpenLayers 3

OpenLayers 3 im Koordinatensystem 3857 Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.0.1/ol.js" type="text/javascript"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.0.1/ol.css" type="text/css">
    
    <script type='text/javascript'>
      function initMap() {
        var apiKey = 'your-api-key';
        var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.default/{z}/{x}/{y}.png';

        var attribution = new ol.Attribution({
          html: '&copy; 2023 &middot; <a href="https://maps.omniscale.com/">Omniscale</a>'+
            '&middot; Map data: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap  (Lizenz: ODbL)</a>'
        });

        var map = new ol.Map({
          target: 'map',
          layers: [
            new ol.layer.Tile({
              source: new ol.source.XYZ({
              attributions: [attribution],
                url: host
              })
            })
          ],
          view: new ol.View({
            center: ol.proj.transform([8.22, 53.14], 'EPSG:4326', 'EPSG:3857'),
            zoom: 13
          })
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

OpenLayers 3 im Koordinatensystem 3857 mit Graustufenkarte Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.0.1/ol.js" type="text/javascript"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.0.1/ol.css" type="text/css">
    
    <script type='text/javascript'>
      function initMap() {
        var apiKey = 'your-api-key';
        var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.grayscale/{z}/{x}/{y}.png';

        var attribution = new ol.Attribution({
          html: '&copy; 2023 &middot; <a href="https://maps.omniscale.com/">Omniscale</a>'+
            '&middot; Map data: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap  (Lizenz: ODbL)</a>'
        });

        var map = new ol.Map({
          target: 'map',
          layers: [
            new ol.layer.Tile({
              source: new ol.source.XYZ({
              attributions: [attribution],
                url: host
              })
            })
          ],
          view: new ol.View({
            center: ol.proj.transform([8.22, 53.14], 'EPSG:4326', 'EPSG:3857'),
            zoom: 13
          })
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

OpenLayers 3 mit HQ/Retina Kacheln im Koordinatensystem 3857 Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.0.1/ol.js" type="text/javascript"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.0.1/ol.css" type="text/css">
    
    <script type='text/javascript'>
      function initMap() {
        var apiKey = 'your-api-key';
        var hq = ol.has.DEVICE_PIXEL_RATIO > 1;
        var tilePixelRatio = hq ? 2 : 1;
        var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.default/{z}/{x}/{y}.png';
        if (hq) {
          host += '?hq=true';
        }

        var attribution = new ol.Attribution({
          html: '&copy; 2023 &middot; <a href="https://maps.omniscale.com/">Omniscale</a>'+
            '&middot; Map data: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap  (Lizenz: ODbL)</a>'
        });

        var map = new ol.Map({
          target: 'map',
          layers: [
            new ol.layer.Tile({
              source: new ol.source.XYZ({
                attributions: [attribution],
                tilePixelRatio: tilePixelRatio,
                url: host
              })
            })
          ],
          view: new ol.View({
            center: ol.proj.transform([8.22, 53.14], 'EPSG:4326', 'EPSG:3857'),
            zoom: 13
          })
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

OpenLayers 3 im Koordinatensystem 25832 Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.12/proj4.js" type="text/javascript"></script>
      
    <script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.0.1/ol.js" type="text/javascript"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/4.0.1/ol.css" type="text/css">
    
    <script type='text/javascript'>
      function initMap() {
        var projectionName = 'EPSG:25832';
        proj4.defs(projectionName, '+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs');

        var apiKey = 'your-api-key';
         var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.default/map';

        var attribution = new ol.Attribution({
          html: '&copy; 2023 &middot; <a href="https://maps.omniscale.com/">Omniscale</a>'+
            '&middot; Map data: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap  (Lizenz: ODbL)</a>'
        });

        var map = new ol.Map({
          target: 'map',
          layers: [
            new ol.layer.Tile({
              source: new ol.source.TileWMS({
                projection: projectionName,
                attributions: [attribution],
                url: host,
                params: {
                  'SRS': 'EPSG:25832',
                  'LAYERS': 'osm'
                }
              })
            })
          ],
          view: new ol.View({
            projection: projectionName,
            center: ol.proj.transform([8.22, 53.15], 'EPSG:4326', projectionName),
            zoom: 13,
            minZoom: 6,
            extent: ol.proj.transformExtent([4, 46, 16, 56], 'EPSG:4326', projectionName)
          })
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

Beispiele mit OpenLayers 2

OpenLayers im Koordinatensystem 3857 Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js' type='text/javascript'></script>
    <style type="text/css">#map .olControlAttribution {bottom: 5px}</style>
    <script type='text/javascript'>
      function initMap() {
        var apiKey = 'your-api-key';
        var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.default/${z}/${x}/${y}.png';
        var attribution = '&copy; 2023 &middot; <a href="https://maps.omniscale.com/">Omniscale</a> ' +
            '&middot; Map data: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap  (Lizenz: ODbL)</a>';

        var layer = new OpenLayers.Layer.XYZ("TMS", host, {attribution: attribution});

        var map = new OpenLayers.Map('map', {
          center: new OpenLayers.LonLat(915046, 7008963),
          zoom: 13,
          layers: [layer],
          projection: new OpenLayers.Projection('EPSG:3857')
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

OpenLayers im Koordinatensystem 3857 mit Graustufenkarte Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js' type='text/javascript'></script>
    <style type="text/css">#map .olControlAttribution {bottom: 5px}</style>
    <script type='text/javascript'>
      function initMap() {
        var apiKey = 'your-api-key';
        var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.grayscale/${z}/${x}/${y}.png';


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

        var layer = new OpenLayers.Layer.XYZ("TMS", host, {attribution: attribution});

        var map = new OpenLayers.Map('map', {
          center: new OpenLayers.LonLat(915046, 7008963),
          zoom: 13,
          layers: [layer],
          projection: new OpenLayers.Projection('EPSG:3857')
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

OpenLayers im Koordinatensystem 4326 Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js' type='text/javascript'></script>
    <style type="text/css">#map .olControlAttribution {bottom: 5px}</style>
    <script type='text/javascript'>
      function initMap() {
        var apiKey = 'your-api-key';
        var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.default/map';
        var attribution = '&copy; 2023 &middot; <a href="https://maps.omniscale.com/">Omniscale</a> ' +
            '&middot; Map data: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap  (Lizenz: ODbL)</a>';

        var layer = new OpenLayers.Layer.WMS('Example layer', host,
            {layers: 'osm'}, {attribution: attribution}
        );

        var map = new OpenLayers.Map('map', {
          center: new OpenLayers.LonLat(8.22, 53.14),
          zoom: 13,
          layers: [layer]
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

OpenLayers im Koordinatensystem 25832 Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js' type='text/javascript'></script>
    <style type="text/css">#map .olControlAttribution {bottom: 5px}</style>
    <script type='text/javascript'>
      function initMap() {
        var apiKey = 'your-api-key';
        var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.default/map';

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

        var layer = new OpenLayers.Layer.WMS('Example layer', host,
            {layers: 'osm'}, {attribution: attribution}
        );

        var map = new OpenLayers.Map('map', {
          center: new OpenLayers.LonLat(448155, 5888572),
          zoom: 5,
          layers: [layer],
          projection: new OpenLayers.Projection('EPSG:25832'),
          maxExtent: new OpenLayers.Bounds(384015, 5846682, 516991, 5931295)
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

OpenLayers im Koordinatensystem 25832 als WMS Demo anzeigen
<!DOCTYPE html>
<html>
  <head>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js' type='text/javascript'></script>
    <style type="text/css">#map .olControlAttribution {bottom: 5px}</style>
    <script type='text/javascript'>
      function initMap() {
        var apiKey = 'your-api-key';
        var host = 'https://maps.omniscale.net/v2/' + apiKey + '/style.default/map';

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

        var layer = new OpenLayers.Layer.WMS('Example layer', host, {
            layers: 'osm'
          }, {
            singleTile: true,
            ratio: 1,
            attribution: attribution
          }
        );
        var map = new OpenLayers.Map('map', {
          center: new OpenLayers.LonLat(448155, 5888572),
          zoom: 5,
          layers: [layer],
          projection: new OpenLayers.Projection('EPSG:25832'),
          maxExtent: new OpenLayers.Bounds(384015, 5846682, 516991, 5931295)
        });
      };
    </script>
  </head>
  <body onload='initMap()'>
    <div id='map' style='height: 400px; width: 400px;'></div>
  </body>
</html>

Nützliches

  • Registrieren • Anmelden
  • Interaktive Karte
  • Pläne und Funktionen

Nützliches

  • Hilfe/API
  • Verfügbare Kartenprojektionen

Über uns

  • Impressum
  • AGB
  • Datenschutz

Kontaktdaten

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

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

Angebote nur für Gewerbetreibende. Alle Preise zzgl. ges. MwSt.

Angebote nur für Gewerbetreibende. Alle Preise zzgl. ges. MwSt.