Openlayers Client - Layer mapnik_lv03
Bounding Box
435698.311791, 482.629428818, 917878.221013, 381827.498892
Level and Resolutions
Level | Resolution |
---|---|
0 | 1883.5152704 |
1 | 941.757635199 |
2 | 470.8788176 |
3 | 235.4394088 |
4 | 117.7197044 |
5 | 58.8598521999 |
6 | 29.4299261 |
7 | 14.71496305 |
8 | 7.35748152499 |
9 | 3.6787407625 |
10 | 1.83937038125 |
11 | 0.919685190624 |
12 | 0.459842595312 |
13 | 0.229921297656 |
14 | 0.114960648828 |
15 | 0.057480324414 |
JavaScript code
<script src="static/OpenLayers.js"></script> <script type="text/javascript"> var map; function init(){ var mapOptions = { projection: new OpenLayers.Projection('EPSG:21781'), maxResolution: 1883.5152704, resolutions: [1883.5152704, 941.757635199, 470.8788176, 235.4394088, 117.7197044, 58.8598521999, 29.4299261, 14.71496305, 7.35748152499, 3.6787407625, 1.83937038125, 0.919685190624, 0.459842595312, 0.229921297656, 0.114960648828, 0.057480324414], units: 'm', numZoomLevels: 16, maxExtent: new OpenLayers.Bounds(435698.311791, 482.629428818, 917878.221013, 381827.498892) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.TMS('TMS mapnik_lv03', '../tms/', {layername: 'mapnik_lv03/EPSG21781', type: 'png', tileSize: new OpenLayers.Size(256, 256) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(477188.06, 68790.91, 837335.97, 299941.84)); } </script>