Openlayers Client - Layer LM-orto
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 |
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: 19, 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 LM-orto', '../tms/', {layername: 'LM-orto/lm_grid', type: 'jpeg', tileSize: new OpenLayers.Size(256, 256) }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(1224514.40, 7170156.29, 2782987.27, 9876845.90)); } </script>