Class: QgsPluginLayerType

Responsible for creating plugin specific map layers.

class qgis.core.QgsPluginLayerType[source]

Bases: object

virtual createLayer(self) QgsPluginLayer | None[source]

Returns new layer of this type. Return None on error

createLayer(self, uri: Optional[str]) -> Optional[QgsPluginLayer] Returns new layer of this type, using layer URI (specific to this plugin layer type). Return None on error.

Return type:

Optional[QgsPluginLayer]

name(self) str[source]
Return type:

str

virtual showLayerProperties(self, layer: QgsPluginLayer | None) bool[source]

Show plugin layer properties dialog. Return False if the dialog cannot be shown.

Parameters:

layer (Optional[QgsPluginLayer])

Return type:

bool