Openlayers Client - Layer age_risques_pluies_fortes
Bounding Box
-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428
Level and Resolutions
Level | Resolution |
---|---|
0 | 78271.516964 |
1 | 39135.758482 |
2 | 19567.879241 |
3 | 9783.9396205 |
4 | 4891.96981025 |
5 | 2445.98490513 |
6 | 1222.99245256 |
7 | 611.496226281 |
8 | 305.748113141 |
9 | 152.87405657 |
10 | 76.4370282852 |
11 | 38.2185141426 |
12 | 19.1092570713 |
13 | 9.55462853565 |
14 | 4.77731426782 |
15 | 2.38865713391 |
16 | 1.19432856696 |
17 | 0.597164283478 |
18 | 0.298582141739 |
19 | 0.149291070869 |
20 | 0.0746455354347 |
JavaScript code
<script src="static/OpenLayers.js"></script> <script type="text/javascript"> var map; function init(){ var mapOptions = { projection: new OpenLayers.Projection('EPSG:3857'), maxResolution: 78271.516964, units: 'm', numZoomLevels: 21, maxExtent: new OpenLayers.Bounds(-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.TMS('TMS age_risques_pluies_fortes', '../tms/', {layername: 'age_risques_pluies_fortes/GLOBAL_WEBMERCATOR_4_V3', type: 'png', tileSize: new OpenLayers.Size(256, 256) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(636757.68, 6349503.39, 728716.39, 6478379.90)); } </script>