Openlayers Client - Layer heigit:osm-carto@2x
Bounding Box
-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244
Level and Resolutions
Level | Resolution |
---|---|
0 | 39135.75848201024 |
1 | 19567.87924100512 |
2 | 9783.93962050256 |
3 | 4891.96981025128 |
4 | 2445.98490512564 |
5 | 1222.99245256282 |
6 | 611.49622628141 |
7 | 305.748113140705 |
8 | 152.8740565703525 |
9 | 76.43702828517625 |
10 | 38.21851414258813 |
11 | 19.109257071294063 |
12 | 9.554628535647032 |
13 | 4.777314267823516 |
14 | 2.388657133911758 |
15 | 1.194328566955879 |
16 | 0.5971642834779395 |
17 | 0.29858214173896974 |
18 | 0.14929107086948487 |
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: 39135.75848201024, 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@2x', '../tms/', {layername: 'heigit:osm-carto@2x/webmercator', type: 'png', tileSize: new OpenLayers.Size(512, 512) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34)); } </script>