Openlayers Client - Layer osm3
Bounding Box
-590237.0, 5000000.0, 1280527.0, 7000000.0
Level and Resolutions
Level | Resolution |
---|---|
0 | 7812.5 |
1 | 3906.25 |
2 | 1953.125 |
3 | 976.5625 |
4 | 488.28125 |
5 | 244.140625 |
6 | 122.0703125 |
7 | 61.03515625 |
8 | 30.517578125 |
9 | 15.2587890625 |
10 | 7.62939453125 |
11 | 3.814697265625 |
12 | 1.9073486328125 |
13 | 0.95367431640625 |
14 | 0.476837158203125 |
15 | 0.2384185791015625 |
16 | 0.11920928955078125 |
17 | 0.059604644775390625 |
18 | 0.029802322387695312 |
19 | 0.014901161193847656 |
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: 7812.5, resolutions: [7812.5, 3906.25, 1953.125, 976.5625, 488.28125, 244.140625, 122.0703125, 61.03515625, 30.517578125, 15.2587890625, 7.62939453125, 3.814697265625, 1.9073486328125, 0.95367431640625, 0.476837158203125, 0.2384185791015625, 0.11920928955078125, 0.059604644775390625, 0.029802322387695312, 0.014901161193847656], units: 'm', numZoomLevels: 20, maxExtent: new OpenLayers.Bounds(-590237.0, 5000000.0, 1280527.0, 7000000.0) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.TMS('TMS osm3', '../tms/', {layername: 'osm3/EPSG3857', type: 'png', tileSize: new OpenLayers.Size(256, 256) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(-590237.00, 5000000.00, 1280527.00, 7000000.00)); } </script>