You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
FYI, in my application I just switched from removing to hiding layers, because for me adding and removing layers several times was causing crashes too. You can do it in this way:
@yangzhedeID I think you have the wrong expectations what happens when you remove a source. It is not valid (but not checked atm) to remove sources that are in use. If you want to hide layers, you need to set their visibility. If you want to hide all layers for a particular source, get all sources and iterate over them.
Activity
ragaisis commentedon May 29, 2017
FYI, in my application I just switched from removing to hiding layers, because for me adding and removing layers several times was causing crashes too. You can do it in this way:
tobrun commentedon May 29, 2017
Thank you both for reporting this. Was able to reproduce the crash, after symbolization I'm seeing the following:
ivovandongen commentedon May 29, 2017
@yangzhedeID I think you have the wrong expectations what happens when you remove a source. It is not valid (but not checked atm) to remove sources that are in use. If you want to hide layers, you need to set their visibility. If you want to hide all layers for a particular source, get all sources and iterate over them.
ivovandongen commentedon May 29, 2017
@ragaisis This sounds like a different bug. Could you open a ticket and add some more information, like a crash dump? Thank you.