POST
|
Thank you very much for your help. I was able to implement the simple cache as described above
... View more
01-29-2015
01:42 PM
|
0
|
0
|
908
|
POST
|
I do have the ArcGISTiledMapServiceLayer added first. Then the ArcGISLocalTiledLayer will be added if there is a network connection. So the flow in the case of no network connection when the map activity is opened is: The ArcGISTiledMapServiceLayer is created but fails to initialise due to no network connection The ArcGISLocalTiledLayer is created with the last cached map tile Then the user gains network connection and I call reinitializeLayer() on the ArcGISTiledMapServiceLayer Is there a way to set the min / max scale that you mentioned to the whole world? Or is there a better way to do this?
... View more
01-21-2015
04:19 PM
|
0
|
2
|
908
|
POST
|
Hi Puneet, Thanks for you reply. I have managed to download & display a cached map tile in the map view now. But I have another question: When I have the cached map loaded in the map view (with only level 16 cached), the map view can only pan an area slightly larger than the cached map area. So when the user reconnects to the network and I call reinitializeLayer(...) on the ArcGISTiledMapServiceLayer, the online layer loads but the map view is unable to pan any further than the area of the cached map. How can I go about solving this issue? Would I have to set the map view extent so that it is able to pan for example the whole world? Thanks, Mark
... View more
01-21-2015
01:00 PM
|
0
|
4
|
908
|
POST
|
I am having trouble trying to implement caching of map tiles to be used if the user doesn't have a network connection. I have read through this sample code and attempted to implement it: Export Tile Cache | ArcGIS for Developers But there are a couple of problems I have encountered: The map seems to be caching a large area of the map and I would like to only download a small area around the devices current location. Where would I get the correct tile URL. At the moment I am using the sample url http://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer How would I retrieve the level of detail the map is currently at? So that I can add it to the ExportTileCacheParameters. Ideally the functionality I am looking for is the arcgis map to maintain its own internal cache automatically. I could specify the maximum size of the cache and the arcgis map automatically caches map sections that have been downloaded, keeping sections in the cache that have been most recently viewed. Does arcgis support this notion or do I need to manage a map cache manually such the sample code above? if so, how would you recommend going about this?
... View more
11-18-2014
05:12 PM
|
0
|
6
|
5482
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|