Openlayers Client - Layer sazp_vojenske_mapovanie_II
Bounding Box
1818477.86471, 6027749.19938, 2550945.45555, 6414834.57534
Level and Resolutions
Level | Resolution |
---|---|
0 | 156412 |
1 | 78206.0 |
2 | 39103.0 |
3 | 19551.5 |
4 | 9775.75 |
5 | 4887.875 |
6 | 2443.9375 |
7 | 1221.96875 |
8 | 610.984375 |
9 | 305.4921875 |
10 | 152.74609375 |
11 | 76.373046875 |
12 | 38.1865234375 |
13 | 19.0932617188 |
14 | 9.54663085938 |
15 | 4.77331542969 |
16 | 2.38665771484 |
17 | 1.19332885742 |
JavaScript code
<script src="static/OpenLayers.js"></script> <script type="text/javascript"> var map; function init(){ var mapOptions = { projection: new OpenLayers.Projection('EPSG:3785'), maxResolution: 156412, resolutions: [156412, 78206.0, 39103.0, 19551.5, 9775.75, 4887.875, 2443.9375, 1221.96875, 610.984375, 305.4921875, 152.74609375, 76.373046875, 38.1865234375, 19.0932617188, 9.54663085938, 4.77331542969, 2.38665771484, 1.19332885742], units: 'm', numZoomLevels: 18, maxExtent: new OpenLayers.Bounds(1818477.86471, 6027749.19938, 2550945.45555, 6414834.57534) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.TMS('TMS sazp_vojenske_mapovanie_II', '../tms/', {layername: 'sazp_vojenske_mapovanie_II/EPSG3785', type: 'jpeg', tileSize: new OpenLayers.Size(256, 256) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(1818477.86, 6027749.20, 2550945.46, 6414834.58)); } </script>