Openlayers Client - Layer etopo1
Coordinate System | Image format |
---|---|
png |
Bounding Box
-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244
JavaScript code
<script src="static/OpenLayers.js"></script> <script type="text/javascript"> var map; function init(){ var mapOptions = { projection: new OpenLayers.Projection('EPSG:900913'), resolutions: [28.0, 14.0, 7.0, 3.5, 1.75, 0.875, 0.4375, 0.21875, 0.109375, 0.0546875, 0.02734375, 0.013671875, 0.0068359375, 0.0034179687, 0.0017089844, 0.0008544922, 0.0004272461, 0.000213623, 0.0001068115, 5.34058e-05], units: 'm', maxExtent: new OpenLayers.Bounds(-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244), tileSize: new OpenLayers.Size(256, 256) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.WMTS({ name: "WMTS etopo1", url: '../wmts/etopo1/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png', layer: 'etopo1', matrixSet: 'gm_grid', format: 'png', isBaseLayer: true, style: 'default', requestEncoding: 'REST' }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34)); } </script>