labs-zola icon indicating copy to clipboard operation
labs-zola copied to clipboard

Persist Layergroup State

Open chriswhong opened this issue 7 years ago • 1 comments

User Story

As a frequent ZoLa user, I want ZoLa to remember the layers I've toggled on/off between sessions so I can save time on my next session.

Description

Layer toggling is persisted in the URL parameters, but if landing on the default ZoLa url, it would be helpful if ZoLa remembered the layers that were toggled on/off from the previous session. We could use localstorage for something like this.

chriswhong avatar Dec 27 '17 19:12 chriswhong

To reproduce:

  • Turn on 3d Buildings (Map pitch changes automatically)
  • Manually change the map pitch back to overhead view
  • Toggle any other layer (Map pitch changes automatically, as it did when you turned on 3d buildings)

chriswhong avatar Dec 27 '17 19:12 chriswhong