I am new to esri. Maybe someone could tell me how on a mobile device define what map area (I guess that is what they call extent) should be cached. Ideally we need - Query (if possible) the ArgGIS server (ver.10) for a route.
- Base on the query result set area of the map that we need to download.
- Download and store map that contains the route to a cache on device for off-line use.
Currently I have code to download and store map:
ServiceConn.Url = @"http://192.168.244.9/ArcGIS/services/tt/MapServer/MobileServer";
_cache.DeleteCache( );
ServiceConn.CreateCache( _cache );
_cache.Open( );
MobileCacheSyncAgent agent = new MobileCacheSyncAgent( _cache, ServiceConn );
agent.DownloadExtent( _cache.GetInitialExtent( ), 0, 0 );
map.MapLayers.AddRange( _cache );
However, I do not know how to define area. The _cache.GetInitialExtent() or _cache.GetExtent() give me the same result always. How do I define boundaries of a map that needs to be pulled?