Openlayers Client - Layer tiefenkarte_mvp
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
235916.47722737084, 5250176.38563339, 967752.4039464793, 6090174.876775644
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: [3281.2441060244273, 1640.6220530122137, 820.3110265061068,
410.1555132530534, 205.0777566265267, 102.53887831326335, 51.26943915663168,
25.63471957831584, 12.81735978915792, 6.40867989457896, 3.20433994728948,
1.60216997364474, 0.80108498682237, 0.400542493411185, 0.2002712467055925,
0.10013562335279624, 0.05006781167639812, 0.02503390583819906, 0.01251695291909953,
0.006258476459549765],
units: 'm',
maxExtent: new OpenLayers.Bounds(235916.47722737084, 5250176.38563339,
967752.4039464793, 6090174.876775644),
tileSize: new OpenLayers.Size(256, 256)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS tiefenkarte_mvp",
url: '../wmts/tiefenkarte_mvp/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png',
layer: 'tiefenkarte_mvp',
matrixSet: 'germany_grid',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(612518.31, 5887029.42, 859932.18, 6053101.45));
}
</script>