I currently find a bug in api.
Sometimes, when I want to add new layer to the map, an error shown up and all the layers added before are gone.
A capture is attached. Pleas help.