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

Download Layer in Android Application #21

Closed
NidhalSNSdev opened this issue Dec 16, 2013 · 4 comments
Closed

Download Layer in Android Application #21

NidhalSNSdev opened this issue Dec 16, 2013 · 4 comments

Comments

@NidhalSNSdev
Copy link

Hi,

In my application i have to add many WMSLayer in some time.
For exemple i have OpenStreetMap Layer and i want to add temperature Layer.But, when temperature Layer is not in cash and i have to download it. and when downloading I want to save globe and Open Street Map Layer avaliable for user.

So, Downloading layer in Background (Without black screen for user and save globe state ) and when finish add layer in globe.

Solution to do this?

thanks

@mdelacalle
Copy link
Member

I need to clarify exactly what you want to do.

Do you want to work with offline layers??, in that case you have to fill the cache and play with enable and disable property,
There are several ways for do that, depending the kind of information.
There isn’t a magical solution, the API gives you all you need depending you have.

Thank you

El 16/12/2013, a las 12:27, Saoud Nidhal notifications@github.com escribió:

Hi,

In my application i have to add many WMSLayer in some time.
For exemple i have OpenStreetMap Layer and i want to add temperature Layer.But, when temperature Layer is not in cash and i have to download it. and when downloading I want to save globe and Open Street Map Layer avaliable for user.

So, Downloading layer in Background (Without black screen for user and save globe state ) and when finish add layer in globe.

Solution to do this?

thanks


Reply to this email directly or view it on GitHub.

@NidhalSNSdev
Copy link
Author

No, it's not offline.

My question is how can i enable Layer with setEnable(true) without delete map from screen for user.

Now, if i have globe with OSM Layer and when i enable Temperature Layer OSM Layer is not visible for user.

So, download layer in background and enable it without losing the display of the original map

@NidhalSNSdev
Copy link
Author

to simplify, how can i download WMSLayer and save it in cache without display it in map ?

@mdelacalle
Copy link
Member

Yes you can download any layer for be used, actually all the tiles that you are downloading are stored on cache.

In this readme you can see how you can prepare and android app to download the layer you want, this cache could be use wherever lately.:
https://github.com/glob3mobile/g3m/blob/purgatory/tools/precachingReadme.txt

To enable, disable layers you can see how is this management in :
https://github.com/glob3mobile/g3m/blob/purgatory/Android/G3MAndroidDemo/src/org/glob3/mobile/demo/SimplestRasterActivity.java

Pay attention to the transparency and which is the base layer and things like that.
Thank you

g3mbot added a commit that referenced this issue Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants