Hi Tom, For layers such as Google Maps: if isinstance(your_layer,QgsPluginLayer) ?
For OSM, it's still a raster layer I think. 2017-11-27 13:03 GMT+01:00 Tom Chadwin <[email protected]>: > Hello all > > I thought this might have been asked before, but if so, I've failed to find > it. How do you determine in PyQGIS whether a layer is an OpenLayers plugin > layer? > > Thanks > > Tom > > > > ----- > Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer- > f4099106.html > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
