wrld3d / ios-api

iOS API for WRLD: Stunning, Interactive 3D Maps
BSD 2-Clause "Simplified" License
19 stars 7 forks source link

Make it possible to 'precache' areas of the map on iOS #21

Open leftsider123 opened 7 years ago

leftsider123 commented 7 years ago

Every time back into the app, map data to reload, need to have a long time, is there a cache to the local API?

tompaynter03 commented 7 years ago

Map tiles are streamed over the internet, but are cached in local device storage once downloaded. After restarting the app, if a map tile is already cached, no web request is made. You should be able to confirm this by re-running your app with your device internet connection disabled - if you can see the map, then this is using cached data.

leftsider123 commented 7 years ago

Mobile phones can even get to the Internet, into the map each time, every time to download the map data, this time is very long, is there any suggestion of scheme can improve the, improve the user experience

leftsider123 commented 7 years ago

Have any interface can be set to map first load the cached data, map the request again after the new data?

tim-jenks commented 7 years ago

We have underlying 'precache' support in our C++ SDK, this is not currently exposed in the iOS API - we will expose this as soon as possible. Marking this as Enhancement and changing title to reflect.

leftsider123 commented 7 years ago

Thank you very much! Mobile phone connected to the network, the app to restart, requests for data map will be finish until the data request, the map will be displayed; This process need time is longer, the user experience is bad; Can let the map display has cached data, let the user see map, then to request data.

非常感谢! 手机连着网络的时候,app重启的时候,地图会先进行数据请求,直到数据请求完,地图才会显示出来; 这个过程需要的时间比较长,用户体验不好; 能不能先让地图展示已经缓存的数据,让用户看到地图,再去请求数据。