The python function QgsProject.addMapLayer is a method of the QgsProject class in the QGIS Python API. It is used to add a map layer to the current project in QGIS. The function takes a QgsMapLayer object as input and adds it to the project's list of map layers. This enables the layer to be displayed in the QGIS map canvas and interacted with using various QGIS tools and functions.
Python QgsProject.addMapLayer - 23 examples found. These are the top rated real world Python examples of qgis.core.QgsProject.addMapLayer extracted from open source projects. You can rate examples to help us improve the quality of examples.