Openlayers Client - Layer hillshade
Coordinate System | Image format |
---|---|
png |
Bounding Box
-1025000.0, -1400000.0, -70000.0, -920000.0
JavaScript code
<script src="static/OpenLayers.js"></script> <script type="text/javascript"> var map; function init(){ var mapOptions = { projection: new OpenLayers.Projection('EPSG:5514'), resolutions: [2048.256, 1024.128, 512.064, 256.032, 128.016, 64.008, 32.004, 16.002, 8.001, 4.0005, 2.00025, 1.000125, 0.5000625, 0.25003125, 0.125015625], units: 'm', maxExtent: new OpenLayers.Bounds(-1025000.0, -1400000.0, -70000.0, -920000.0), tileSize: new OpenLayers.Size(256, 256) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.WMTS({ name: "WMTS hillshade", url: '../wmts/hillshade/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png', layer: 'hillshade', matrixSet: 'jtsk', format: 'png', isBaseLayer: true, style: 'default', requestEncoding: 'REST' }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(-1025000.00, -1400000.00, -70000.00, -920000.00)); } </script>