[QGIS-Developer] Detect OpenLayers layer in Python
Etienne Trimaille
etienne.trimaille at gmail.com
Mon Nov 27 04:19:40 PST 2017
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 <tom.chadwin at nnpa.org.uk>:
> 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
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171127/65d93daa/attachment.html>
More information about the QGIS-Developer
mailing list