Openlayers Client - Layer UebersichtsplanTrans
| Coordinate System | Image format |
|---|---|
| jpeg |
Bounding Box
2672499.0, 1238999.0, 2689999.0, 1256999.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: [67.7333333333, 33.8666666667, 16.9333333333, 8.4666666667, 4.2333333333,
2.1166666667, 1.0583333333, 0.5291666667, 0.2645833333, 0.1322916667, 0.0661458333],
units: 'm',
maxExtent: new OpenLayers.Bounds(2672499.0, 1238999.0, 2689999.0, 1256999.0),
tileSize: new OpenLayers.Size(512, 512)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS UebersichtsplanTrans",
url:
'../wmts/1.0.0/UebersichtsplanTrans/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg',
layer: 'UebersichtsplanTrans',
matrixSet: 'stzh',
format: 'jpeg',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(2480000.00, 1062000.00, 2900000.00,
1302000.00));
}
</script>