Save current layer in localStorage