Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to cache the basemap? #46

Closed
parcool opened this issue Mar 15, 2017 · 3 comments
Closed

How to cache the basemap? #46

parcool opened this issue Mar 15, 2017 · 3 comments
Labels

Comments

@parcool
Copy link

parcool commented Mar 15, 2017

When i load my basemap by internet first,if i re-open my app,it needs download the data from server agian.how to cache the loaded data of basemap????
I do not found the api about this! so is a question or issue?

@parcool
Copy link
Author

parcool commented Mar 15, 2017

another question is my app has more than one activity with the map,so each activity needs load the basemap agian?

@doneill
Copy link
Contributor

doneill commented Mar 15, 2017

@parcool This is best asked on the geonet forum, but since you are here I will offer comments. There is no API for caching data in the ArcGIS Android SDK so you as a developer have to manage cache of objects yourself. We do have an example of caching retrieved Basemaps in the MaterialBasemaps MainActivity which shows one way to accomplish this using the PersistBasemapItem class.

@parcool
Copy link
Author

parcool commented Mar 15, 2017

@doneill thanks a lot!!!

@parcool parcool closed this as completed Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants