You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I used your library for my project.
one question. how to save last basemap selected?
I want save the last basemap in cookie and when the user reopen the page, cookie basemap will select to show!
Please help me. :X
The text was updated successfully, but these errors were encountered:
This is not an appropriate usage of cookies; those are for transfer of information between client and server.
You could use the localStorage API in the browser to store that information.
You can use that information in your application before you instantiate this plugin by rearranging the basemap layers you pass in so that the persisted one is the first in the list, which will make it display by default.
I don't have the bandwidth or need to add this functionality here unless this becomes a common request. I may be willing to consider a PR, if this is implemented in a lightweight and easy to test way, and exposed behind a persist option.
Hi.
I used your library for my project.
one question. how to save last basemap selected?
I want save the last basemap in cookie and when the user reopen the page, cookie basemap will select to show!
Please help me. :X
The text was updated successfully, but these errors were encountered: