Openlayers Client - Layer Landeskartenwerk

Coordinate SystemImage format
png

Bounding Box

2480237.0, 1062032.0, 2846837.0, 1315832.0

JavaScript code

<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
    var mapOptions = {
    projection: new OpenLayers.Projection('EPSG:2056'),
    resolutions: [100.0, 50.0, 20.0, 10.0, 5.0, 2.5, 1.0, 0.5, 0.25],
    units: 'm',
    maxExtent: new OpenLayers.Bounds(2480237.0, 1062032.0, 2846837.0, 1315832.0),
    tileSize: new OpenLayers.Size(256, 256)
    };

    map = new OpenLayers.Map('map', mapOptions);

    var layer = new OpenLayers.Layer.WMTS({
     name: "WMTS Landeskartenwerk",
     url:
'../wmts/1.0.0/Landeskartenwerk/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png',
     layer: 'Landeskartenwerk',
     matrixSet: 'eCH0056_ch',
     format: 'png',
     isBaseLayer: true,
     style: 'default',
     requestEncoding: 'REST'
    });

    map.addLayer(layer)
    map.zoomToExtent(new OpenLayers.Bounds(2480237.00, 1062032.00, 2846837.00,
1315832.00));
}
</script>