Openlayers Client - Layer base_bright_v2_lv95
Coordinate System | Image format |
---|---|
png |
Bounding Box
2420000.0, 1030000.0, 2900000.0, 1350000.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: [4000, 3750, 3500, 3250, 3000, 2750, 2500, 2250, 2000, 1750, 1500, 1250, 1000, 750, 650, 500, 250, 100, 50, 20, 10, 5, 2.5, 2, 1.5, 1, 0.5, 0.25], units: 'm', maxExtent: new OpenLayers.Bounds(2420000.0, 1030000.0, 2900000.0, 1350000.0), tileSize: new OpenLayers.Size(256, 256) }; map = new OpenLayers.Map('map', mapOptions); var layer = new OpenLayers.Layer.WMTS({ name: "WMTS base_bright_v2_lv95", url: '../wmts/base_bright_v2_lv95/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png', layer: 'base_bright_v2_lv95', matrixSet: 'swissgrid_lv95', format: 'png', isBaseLayer: true, style: 'default', requestEncoding: 'REST' }); map.addLayer(layer) map.zoomToExtent(new OpenLayers.Bounds(2409961.24, 1023000.52, 2916447.82, 1357407.22)); } </script>