Openlayers Client - Layer hillshade
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
1202400.0, 6036000.0, 2642600.0, 6683600.0
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:3857'),
resolutions: [5625.78125, 2812.890625, 1406.4453125, 703.22265625, 351.611328125,
175.805664062, 87.9028320312, 43.9514160156, 21.9757080078, 10.9878540039, 5.49392700195,
2.74696350098, 1.37348175049, 0.686740875244, 0.343370437622, 0.171685218811,
0.0858426094055, 0.0429213047028, 0.0214606523514, 0.0107303261757],
units: 'm',
maxExtent: new OpenLayers.Bounds(1202400.0, 6036000.0, 2642600.0, 6683600.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: 'wmczsk',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(1202400.00, 6036000.00, 2642600.00,
6683600.00));
}
</script>