Persist layer visibility between share dialog and embed map