Openlayers Client - Layer berggrunnn250
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
-1729101.6947364062, 6339192.531265974, 1787468.4766460895, 8395043.109607551
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:25832'),
resolutions: [5700, 2850.0, 1425.0, 712.5, 356.25, 178.125, 89.0625, 44.53125,
22.265625, 11.1328125, 5.56640625, 2.783203125, 1.3916015625, 0.69580078125,
0.347900390625, 0.1739501953125, 0.08697509765625, 0.043487548828125, 0.0217437744140625,
0.01087188720703125],
units: 'm',
maxExtent: new OpenLayers.Bounds(-1729101.6947364062, 6339192.531265974,
1787468.4766460895, 8395043.109607551),
tileSize: new OpenLayers.Size(256, 256)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS berggrunnn250",
url: '../wmts/berggrunnn250/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png',
layer: 'berggrunnn250',
matrixSet: 'utm32n',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(83627.80, 6338450.05, 1504677.64, 8051673.29));
}
</script>