Openlayers Client - Layer orthos
Bounding Box
-357824.0, 6037007.0, 1313633.0, 7230727.0
Level and Resolutions
| Level | Resolution |
|---|---|
| 0 | 2257.776558578436 |
| 1 | 1128.888279289218 |
| 2 | 564.444139644609 |
| 3 | 282.2220698223045 |
| 4 | 141.11103491115225 |
| 5 | 88.1943968195 |
| 6 | 35.27775872778806 |
| 7 | 17.63887936389403 |
| 8 | 8.819439681947015 |
| 9 | 5.291663809168209 |
| 10 | 3.527775872778806 |
| 11 | 1.763887936389403 |
| 12 | 1.058332761833642 |
| 13 | 0.529166380916821 |
| 14 | 0.3527775873 |
| 15 | 0.1763887936 |
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:2154'),
maxResolution: 2257.776558578436,
resolutions: [2257.776558578436, 1128.888279289218, 564.444139644609,
282.2220698223045, 141.11103491115225, 88.1943968195, 35.27775872778806,
17.63887936389403, 8.819439681947015, 5.291663809168209, 3.527775872778806,
1.763887936389403, 1.058332761833642, 0.529166380916821, 0.3527775873, 0.1763887936],
units: 'm',
numZoomLevels: 16,
maxExtent: new OpenLayers.Bounds(-357824.0, 6037007.0, 1313633.0, 7230727.0)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.TMS('TMS orthos', '../tms/',
{layername: 'orthos/EPSG2154', type: 'jpeg',
tileSize: new OpenLayers.Size(256, 256)
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(-357824.00, 6037007.00, 1313633.00,
7230727.00));
}
</script>