Sedang Disiapkan

small job for qgis developer: display google road map on the qgscanvas in EPSG:3857 -- 2

Here is my code to display google road map on the qgscanvas:

QgsDataSourceUri ds;

[login to view URL]("type", "xyz");

[login to view URL]("url", QString("https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}"));

QgsRasterLayer* layer = new QgsRasterLayer([login to view URL](), "my map", "wms");

QList<QgsMapLayer*> layers = mCanvas->layers();

[login to view URL](0, layer);

mCanvas->setLayers(layers);

mCanvas->setExtent(layer->extent());

but the result display incorrect coordinate, investigate information about provider, I can not found information about CRS, map unit,..... When use QGIS desktop, I can add xyz tile layer using google map to the canvas and right click on layer, choose properties to show information about provider, it allready show crs, unit, bounding box,...

Kemahiran: Pengaturcaraan C++, Geolokasi, Geospatial, API Peta Google

Lihat lagi: display google map drupal, display google map website dynamic address, native iphone app display google map, php display google map, rollover display google map location, java display google map image, drupal display google map php, script display google map, asp display google map, display google route map web page, display google map icons, display google map using address database vbnet, display google analytics map website, display list addresses map google, display google map website, drupal location display google map, need aspnet developer small job term relationship, display google map web applicationaspnet, google road map marking

Tentang Majikan:
( 1 ulasan ) Hanoi, Vietnam

ID Projek: #32210261