<div dir="ltr"><span style="color:rgb(36,39,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Liberation Sans",sans-serif;font-size:15px">I add google road map layer to canvas, but it seem load incorrect CRS?</span><div><span style="background-color:transparent;font-size:13px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit">QgsDataSourceUri ds;</span><br></div><div><span style="background-color:transparent;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit;font-size:13px">ds.setParam("type", "xyz");</span></div><div><span style="background-color:transparent;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit;font-size:13px">ds.setParam("url", QString("<a href="https://mt1.google.com/vt/lyrs=m&x=%7Bx%7D&y=%7By%7D&z=%7Bz%7D" target="_blank">https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}</a>"));</span></div><div><span style="background-color:transparent;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit;font-size:13px">QgsRasterLayer* layer = new QgsRasterLayer(ds.encodedUri(), "my map", "wms");</span></div><div><span style="background-color:transparent;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit;font-size:13px">QList<QgsMapLayer*> layers = mCanvas->layers();</span></div><div><span style="background-color:transparent;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit;font-size:13px">layers.insert(0, layer);</span></div><div><span style="background-color:transparent;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit;font-size:13px">mCanvas->setLayers(layers);</span></div><div><span style="background-color:transparent;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit;font-size:13px">mCanvas->setExtent(layer->extent());</span></div><div><span style="background-color:transparent;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit;font-size:13px"><br></span></div><div><span style="color:rgb(36,39,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Liberation Sans",sans-serif;font-size:15px">but when I using qgis desktop, add XYZTiles with Google Maps, I get map is square</span> and no any information from provider about CRS, missed extent </div></div>