Openlayers Client - Layer netzkarte_relief
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
420000.0, 30000.0, 900000.0, 350000.0
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:21781'),
resolutions: [750, 500, 250, 100, 50, 20, 10, 5, 2.5, 1, 0.5],
units: 'm',
maxExtent: new OpenLayers.Bounds(420000.0, 30000.0, 900000.0, 350000.0),
tileSize: new OpenLayers.Size(256, 256)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS netzkarte_relief",
url: '../wmts/netzkarte_relief/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png',
layer: 'netzkarte_relief',
matrixSet: 'swissgrid',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(409961.24, 23000.52, 916447.82, 357407.22));
}
</script>