before removeLayer is called.
Also don't try to automatically adjust zoom. Leave that to the layer control for now and wait for a setBaseLayer / switchLayer or something instead.