Openlayers Client - Layer AVOnline_Nachbargemeinden
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
2480000.0, 1062000.0, 2900000.0, 1302000.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.7333332992, 33.8666666496, 16.9333333248, 8.4666666624, 4.2333333312,
2.1166666656, 1.0583333328, 0.5291666664, 0.2645833332, 0.1322916666, 0.0661458333],
units: 'm',
maxExtent: new OpenLayers.Bounds(2480000.0, 1062000.0, 2900000.0, 1302000.0),
tileSize: new OpenLayers.Size(512, 512)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS AVOnline_Nachbargemeinden",
url:
'../wmts/1.0.0/AVOnline_Nachbargemeinden/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png',
layer: 'AVOnline_Nachbargemeinden',
matrixSet: 'ch',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(2480000.00, 1062000.00, 2900000.00,
1302000.00));
}
</script>