Openlayers Client - Layer plan_ville_tms
Bounding Box
-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244
Level and Resolutions
Level | Resolution |
---|---|
0 | 78271.51696402048 |
1 | 39135.75848201024 |
2 | 19567.87924100512 |
3 | 9783.93962050256 |
4 | 4891.96981025128 |
5 | 2445.98490512564 |
6 | 1222.99245256282 |
7 | 611.49622628141 |
8 | 305.748113140705 |
9 | 152.8740565703525 |
10 | 76.43702828517625 |
11 | 38.21851414258813 |
12 | 19.109257071294063 |
13 | 9.554628535647032 |
14 | 4.777314267823516 |
15 | 2.388657133911758 |
16 | 1.194328566955879 |
17 | 0.5971642834779395 |
18 | 0.29858214173896974 |
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.51696402048, units: 'm', numZoomLevels: 19, maxExtent: new OpenLayers.Bounds(-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.TMS('TMS plan_ville_tms', '../tms/', {layername: 'plan_ville_tms/EPSG3857', type: 'png', tileSize: new OpenLayers.Size(256, 256) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34)); } </script>