Hi Tom,

Am Montag, 27. November 2017, 05.03:07 schrieb Tom Chadwin:
> 
> 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?

It's an OpenLayer layer when layer.customProperty('ol_layer_type') exists.

Cheers
Pirmin

-- 
Pirmin Kalberer - @PirminKalberer
Sourcepole - http://www.sourcepole.com
_______________________________________________
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

Reply via email to