Openlayers Client - Layer osm
Bounding Box
200000.0, 6000000.0, 600000.0, 6400000.0
Level and Resolutions
| Level | Resolution |
|---|---|
| 0 | 1562.5 |
| 1 | 781.25 |
| 2 | 390.625 |
| 3 | 195.3125 |
| 4 | 97.65625 |
| 5 | 48.828125 |
| 6 | 24.4140625 |
| 7 | 12.20703125 |
| 8 | 6.103515625 |
| 9 | 3.0517578125 |
| 10 | 1.52587890625 |
| 11 | 0.762939453125 |
| 12 | 0.3814697265625 |
| 13 | 0.19073486328125 |
| 14 | 0.095367431640625 |
| 15 | 0.0476837158203125 |
| 16 | 0.02384185791015625 |
| 17 | 0.011920928955078125 |
| 18 | 0.0059604644775390625 |
| 19 | 0.0029802322387695312 |
| 20 | 0.0014901161193847656 |
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:32637'),
maxResolution: 1562.5,
resolutions: [1562.5, 781.25, 390.625, 195.3125, 97.65625, 48.828125, 24.4140625,
12.20703125, 6.103515625, 3.0517578125, 1.52587890625, 0.762939453125, 0.3814697265625,
0.19073486328125, 0.095367431640625, 0.0476837158203125, 0.02384185791015625,
0.011920928955078125, 0.0059604644775390625, 0.0029802322387695312,
0.0014901161193847656],
units: 'm',
numZoomLevels: 21,
maxExtent: new OpenLayers.Bounds(200000.0, 6000000.0, 600000.0, 6400000.0)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.TMS('TMS osm', '../tms/',
{layername: 'osm/EPSG32637', type: 'png',
tileSize: new OpenLayers.Size(256, 256)
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(200000.00, 6000000.00, 600000.00, 6400000.00));
}
</script>