Skip to content

Save map state #10

@jimsafley

Description

@jimsafley

The app currently retains marker state when navigating back from an item show page. (This is possible because browsers automatically save the state of the form.) Unfortunately the browser is unaware of the state of the map, i.e. the base layer's latitude/longitude and zoom level.

This can be done using some kind of persistent data storage, such as cookies or web storage, unless there's an easier way that eludes me.

This may be able to be done by manipulating the browser history, using history.pushState(). I'm not sure if this is compatible with mobile browsers.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions