Openlayers Client - Layer OSMCartoHDMBackground
Bounding Box
-180.0, -90.0, 180.0, 90.0
Level and Resolutions
| Level | Resolution |
|---|---|
| 0 | 0.3515625 |
| 1 | 0.17578125 |
| 2 | 0.087890625 |
| 3 | 0.0439453125 |
| 4 | 0.02197265625 |
| 5 | 0.010986328125 |
| 6 | 0.0054931640625 |
| 7 | 0.00274658203125 |
| 8 | 0.00137329101562 |
| 9 | 0.000686645507812 |
| 10 | 0.000343322753906 |
| 11 | 0.000171661376953 |
| 12 | 8.58306884766e-05 |
| 13 | 4.29153442383e-05 |
| 14 | 2.14576721191e-05 |
| 15 | 1.07288360596e-05 |
| 16 | 5.36441802979e-06 |
| 17 | 2.68220901489e-06 |
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:4326'),
maxResolution: 0.3515625,
units: 'degree',
numZoomLevels: 18,
maxExtent: new OpenLayers.Bounds(-180.0, -90.0, 180.0, 90.0)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.TMS('TMS OSMCartoHDMBackground', '../tms/',
{layername: 'OSMCartoHDMBackground/EPSG4326', type: 'png',
tileSize: new OpenLayers.Size(256, 256)
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(-180.00, -90.00, 180.00, 90.00));
}
</script>