@@ -608,6 +608,9 @@ def createWidget(self):
608
608
options = QgsProcessingUtils .compatibleRasterLayers (QgsProject .instance (), False )
609
609
elif self .param .layerType () in (QgsProcessing .TypeVectorAnyGeometry , QgsProcessing .TypeVector ):
610
610
options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [], False )
611
+ elif self .param .layerType () == QgsProcessing .TypeMapLayer :
612
+ options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [], False )
613
+ options .extend (QgsProcessingUtils .compatibleRasterLayers (QgsProject .instance (), False ))
611
614
else :
612
615
options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [self .param .layerType ()],
613
616
False )
@@ -627,6 +630,9 @@ def refresh(self):
627
630
options = QgsProcessingUtils .compatibleRasterLayers (QgsProject .instance (), False )
628
631
elif self .param .layerType () in (QgsProcessing .TypeVectorAnyGeometry , QgsProcessing .TypeVector ):
629
632
options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [], False )
633
+ elif self .param .layerType () == QgsProcessing .TypeMapLayer :
634
+ options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [], False )
635
+ options .extend (QgsProcessingUtils .compatibleRasterLayers (QgsProject .instance (), False ))
630
636
else :
631
637
options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [self .param .layerType ()],
632
638
False )
@@ -667,6 +673,9 @@ def value(self):
667
673
options = QgsProcessingUtils .compatibleRasterLayers (QgsProject .instance (), False )
668
674
elif self .param .layerType () in (QgsProcessing .TypeVectorAnyGeometry , QgsProcessing .TypeVector ):
669
675
options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [], False )
676
+ elif self .param .layerType () == QgsProcessing .TypeMapLayer :
677
+ options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [], False )
678
+ options .extend (QgsProcessingUtils .compatibleRasterLayers (QgsProject .instance (), False ))
670
679
else :
671
680
options = QgsProcessingUtils .compatibleVectorLayers (QgsProject .instance (), [self .param .layerType ()],
672
681
False )
0 commit comments