I'm trying to add a WMTS layer in an OpenLayers3 project. I'm able to add this layer in QGIS. Here is the service address: http://www.ngi.be/cartoweb/1.0.0/WMTSCapabilities.xml.
In OpenLayers3, I tried several combination of parameters. The last in date is this one:
var ignLayer = new ol.layer.Tile({
source: new ol.source.TileWMS({
url: 'http://www.ngi.be/cartoweb/1.0.0/WMTSCapabilities.xml',
params: {
'Layer': 'CartoWeb-Topo',
'Tileset': '3857',
},
format: 'image/png'
})
});
Do you think am I missing a mandatory parameter? Or maybe the source TileWMS is not the one to use?
ResourceURL resourceType="tile" template="http://www.ngi.be/cartoweb/1.0.0/topo/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png" format="image/png"/>