Openlayers Client - Layer BZO_Ergaenzungsplan_Aussichtsschutz
Coordinate System | Image format |
---|---|
png |
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 BZO_Ergaenzungsplan_Aussichtsschutz", url: '../wmts/1.0.0/BZO_Ergaenzungsplan_Aussichtsschutz/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png', layer: 'BZO_Ergaenzungsplan_Aussichtsschutz', matrixSet: 'stzh', format: 'png', isBaseLayer: true, style: 'default', requestEncoding: 'REST' }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(2474963.31, 1054658.47, 2912234.83, 1309632.15)); } </script>