Openlayers Client - Layer strassenbefahrung
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 |
19 | 0.14929107086948487 |
20 | 0.07464553543474244 |
JavaScript code
<script src="static/OpenLayers.js"></script> <script type="text/javascript"> var map; function init(){ var mapOptions = { projection: new OpenLayers.Projection('EPSG:900913'), maxResolution: 78271.51696402048, units: 'm', numZoomLevels: 21, 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 strassenbefahrung', '../tms/', {layername: 'strassenbefahrung/mercator', 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>