Openlayers Client - Layer gisgr
Bounding Box
474587.0, 5250556.0, 977059.0, 5680802.0
Level and Resolutions
Level | Resolution |
---|---|
0 | 1962.78125 |
1 | 981.390625 |
2 | 490.6953125 |
3 | 245.34765625 |
4 | 122.673828125 |
5 | 61.3369140625 |
6 | 30.6684570312 |
7 | 15.3342285156 |
8 | 7.66711425781 |
9 | 3.83355712891 |
10 | 1.91677856445 |
11 | 0.958389282227 |
12 | 0.479194641113 |
13 | 0.239597320557 |
14 | 0.119798660278 |
15 | 0.0598993301392 |
16 | 0.0299496650696 |
17 | 0.0149748325348 |
18 | 0.0074874162674 |
19 | 0.0037437081337 |
JavaScript code
<script src="static/OpenLayers.js"></script> <script type="text/javascript"> var map; function init(){ var mapOptions = { projection: new OpenLayers.Projection('EPSG:25831'), maxResolution: 1962.78125, resolutions: [1962.78125, 981.390625, 490.6953125, 245.34765625, 122.673828125, 61.3369140625, 30.6684570312, 15.3342285156, 7.66711425781, 3.83355712891, 1.91677856445, 0.958389282227, 0.479194641113, 0.239597320557, 0.119798660278, 0.0598993301392, 0.0299496650696, 0.0149748325348, 0.0074874162674, 0.0037437081337], units: 'm', numZoomLevels: 20, maxExtent: new OpenLayers.Bounds(474587.0, 5250556.0, 977059.0, 5680802.0) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.TMS('TMS gisgr', '../tms/', {layername: 'gisgr/EPSG25831', type: 'png', tileSize: new OpenLayers.Size(256, 256) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(474587.00, 5250556.00, 977059.00, 5680802.00)); } </script>