Openlayers Client - Layer brtachtergrondkaart
| Coordinate System | Image format |
|---|---|
| png |
Bounding Box
-285401.92, 22598.08, 595401.92, 903401.92
JavaScript code
<script src="static/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init(){
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:28992'),
resolutions: [3440.64, 1720.32, 860.16, 430.08, 215.04, 107.52, 53.76, 26.88, 13.44,
6.72, 3.36, 1.68, 0.84, 0.42, 0.21],
units: 'm',
maxExtent: new OpenLayers.Bounds(-285401.92, 22598.08, 595401.92, 903401.92),
tileSize: new OpenLayers.Size(256, 256)
};
map = new OpenLayers.Map('map', mapOptions);
var layer = new OpenLayers.Layer.WMTS({
name: "WMTS brtachtergrondkaart",
url:
'../wmts/brtachtergrondkaart/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png',
layer: 'brtachtergrondkaart',
matrixSet: 'ngr14',
format: 'png',
isBaseLayer: true,
style: 'default',
requestEncoding: 'REST'
});
map.addLayer(layer)
map.zoomToExtent(new OpenLayers.Bounds(-285401.92, 22598.08, 595401.92, 903401.92));
}
</script>