Coordinate Widget and localStorage - is it configurable?

108
2
12-14-2020 09:04 AM
yuruiology
New Contributor II

Hi - I've noticed that the Coordinate Widget uses localStorage to save its state - however, for some reason it uses the current path as part of the `key`. This is causing a problem for us because the url in our app changes very often, as a result, the widget is creating tons of records in localStorage very quickly.

Is this behavior configurable? Is it possible to either make it use a fixed key, or store the state in `sessionStorage` instead? (at least the records will be cleared after the session ends). 

Thanks!

Reply
0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor

Hi yuruiology, thanks for posting here. Unfortunately, I don't know of a workaround for this issue at this time. However, this sounds like a valid enhancement for the CoordinateConversion widget. We will consider this for a future release, and I'll update this thread when we get something installed.

Reply
0 Kudos
yuruiology
New Contributor II

I see, thanks! please keep us posted.