Openlayers Client - Layer heigit:osm-carto

Coordinate SystemImage format
png

Bounding Box

-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244

Level and Resolutions

LevelResolution
078271.51696402048
139135.75848201024
219567.87924100512
39783.93962050256
44891.96981025128
52445.98490512564
61222.99245256282
7611.49622628141
8305.748113140705
9152.8740565703525
1076.43702828517625
1138.21851414258813
1219.109257071294063
139.554628535647032
144.777314267823516
152.388657133911758
161.194328566955879
170.5971642834779395
180.29858214173896974

JavaScript code

<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
    var mapOptions = {
    projection: new OpenLayers.Projection('EPSG:3857'),
    maxResolution: 78271.51696402048,
    units: 'm',
    numZoomLevels: 19,
    maxExtent: new OpenLayers.Bounds(-20037508.342789244, -20037508.342789244,
20037508.342789244, 20037508.342789244)
    };

    map = new OpenLayers.Map('map', mapOptions);

    var layer = new OpenLayers.Layer.TMS('TMS heigit:osm-carto', '../tms/',
        {layername: 'heigit:osm-carto/webmercator', type: 'png',
         tileSize: new OpenLayers.Size(256, 256)
    });

    map.addLayer(layer)
    map.zoomToExtent(new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34,
20037508.34));
}
</script>