enmapBox.removeMapLayer not working correctly

Issue #857 resolved
Andreas Janz created an issue
from qgis._core import QgsRasterLayer

from enmapbox import EnMAPBox, initAll
from enmapbox.exampledata import enmap
from enmapbox.testing import start_app

qgsApp = start_app()
initAll()
enmapBox = EnMAPBox(None)

layer = QgsRasterLayer(enmap)
mapDock = enmapBox.onDataDropped([layer])
enmapBox.removeMapLayer(layer, True)

qgsApp.exec_()

After calling removeMapLayer the layer is still available.

Comments (2)

  1. Log in to comment