clearAllLayers revamped to be more batteries-included