[QGIS-Developer] Detect OpenLayers layer in Python
Pirmin Kalberer
pi_ml at sourcepole.com
Mon Nov 27 12:33:57 PST 2017
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
More information about the QGIS-Developer
mailing list