glob3mobile / g3m

The multiplatform advanced visualization framework
http://www.glob3mobile.com/
Other
117 stars 56 forks source link

How to use the cache system for offline map in iOS #122

Closed WuhanMonkey closed 9 years ago

WuhanMonkey commented 9 years ago

Checked https://github.com/glob3mobile/g3m/blob/purgatory/tools/precachingReadme.txt But I didn't find the API in iOS to do the precaching.

mdelacalle commented 9 years ago

Hi You can use the same file on iOS, so you create de cache with the android app and use it on iOS version

WuhanMonkey commented 9 years ago

@mdelacalle thanks for your quick reply, but I don't think I get your point.

What do you mean to use the "precachingReadme.txt" ? I thought it is an example in Android version for how to deploy the cache into disk. So did you mean, I need to write an Android app first to deploy the cache and use my iOS app to consume it? How can I do that? Does iOS app automatically consume it? More instruction would be really helpful.

Thanks -Chengpeng

mdelacalle commented 9 years ago

Exactly You can use this code to prepare your cache or use the same API to do the same thing on iOS. The idea is use the own g3m API to get the data.

WuhanMonkey commented 9 years ago

I can't find the corresponding API in iOS. @DiegoGomezDeck Could you please give some instructions on that?

Thanks