Openlayers Client - Layer AGIS2019
Bounding Box
-20037508.342789244, -20037508.36884703, 20037508.342789244, 20037508.36884704
Level and Resolutions
Level | Resolution |
---|---|
0 | 156543.03413161746 |
1 | 78271.51706580872 |
2 | 39135.75853290435 |
3 | 19567.87926645217 |
4 | 9783.939633226084 |
5 | 4891.969816613041 |
6 | 2445.98490830652 |
7 | 1222.99245415326 |
8 | 611.49622707663 |
9 | 305.748113538315 |
10 | 152.8740567691575 |
11 | 76.43702838457875 |
12 | 38.218514192289376 |
13 | 19.109257096144688 |
14 | 9.554628548072344 |
15 | 4.777314274036172 |
16 | 2.388657137018086 |
17 | 1.194328568509043 |
18 | 0.5971642842545215 |
19 | 0.29858214212726075 |
20 | 0.14929107106363038 |
21 | 0.07464553553181519 |
JavaScript code
<script src="static/OpenLayers.js"></script> <script type="text/javascript"> var map; function init(){ var mapOptions = { projection: new OpenLayers.Projection('EPSG:900913'), maxResolution: 156543.03413161746, resolutions: [156543.03413161746, 78271.51706580872, 39135.75853290435, 19567.87926645217, 9783.939633226084, 4891.969816613041, 2445.98490830652, 1222.99245415326, 611.49622707663, 305.748113538315, 152.8740567691575, 76.43702838457875, 38.218514192289376, 19.109257096144688, 9.554628548072344, 4.777314274036172, 2.388657137018086, 1.194328568509043, 0.5971642842545215, 0.29858214212726075, 0.14929107106363038, 0.07464553553181519], units: 'm', numZoomLevels: 22, maxExtent: new OpenLayers.Bounds(-20037508.342789244, -20037508.36884703, 20037508.342789244, 20037508.36884704) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.TMS('TMS AGIS2019', '../tms/', {layername: 'AGIS2019/EPSG900913', type: 'png', tileSize: new OpenLayers.Size(256, 256) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(857408.76, 5962738.53, 942827.77, 6044753.24)); } </script>