Openlayers Client - Layer ek

Coordinate SystemImage format
png

Bounding Box

-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428

Level and Resolutions

LevelResolution
0156543.033928
178271.5169641
239135.758482
319567.879241
49783.93962051
54891.96981025
62445.98490513
71222.99245256
8611.496226282
9305.748113141
10152.87405657
1176.4370282852
1238.2185141426
1319.1092570713
149.55462853565
154.77731426783
162.38865713391
171.19432856696
180.597164283478
190.298582141739

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: 156543.033928,
    resolutions: [156543.033928, 78271.5169641, 39135.758482, 19567.879241, 9783.93962051,
4891.96981025, 2445.98490513, 1222.99245256, 611.496226282, 305.748113141, 152.87405657,
76.4370282852, 38.2185141426, 19.1092570713, 9.55462853565, 4.77731426783, 2.38865713391,
1.19432856696, 0.597164283478, 0.298582141739],
    units: 'm',
    numZoomLevels: 20,
    maxExtent: new OpenLayers.Bounds(-20037508.3428, -20037508.3428, 20037508.3428,
20037508.3428)
    };

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

    var layer = new OpenLayers.Layer.TMS('TMS ek', '../tms/',
        {layername: 'ek/EPSG3857', type: 'png',
         tileSize: new OpenLayers.Size(256, 256)
    });

    map.addLayer(layer)
    map.zoomToExtent(new OpenLayers.Bounds(1217133.92, 7423692.71, 2699586.71,
10067790.93));
}
</script>