Hi,
Depending on the order of raster backgrounds specified for the map,
the WMTS service is not displayed when the first layer is the IGN WMS service.
Apparently the problem comes from the fact that the capabilities service returns the
<CRS>CRS:84</CRS> first but not 3857 but how to change it ?
My sample code for test (see join file wms_wmts_ign_arcgis.zip)
// Add layers to array
// esri first one => OK it works
/*aLayers.push(esriLayer);
aLayers.push(ignWmtsLayer);
aLayers.push(ignWmsLayer);*/
// wmts first one => OK it works
/*aLayers.push(ignWmtsLayer);
aLayers.push(ignWmsLayer);
aLayers.push(esriLayer);*/
// wms first one => NO it doesn't work => how change CRS WMS in spatialreferences ?
aLayers.push(ignWmsLayer);
aLayers.push(ignWmtsLayer);
aLayers.push(esriLayer);
Thanks for your help