-
assigned issue to
enmapBox.removeMapLayer not working correctly
Issue #857
resolved
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)
-
reporter -
- changed status to resolved
resolves
#857→ <<cset e82052a4ae8e>>
- Log in to comment
Not sure why I assigned the issue to myself in the first place .