AnsweredAssumed Answered

How do I load Raster Mapcache data to my ArcGIS 10.2. SDK for Window Mobile application?

Question asked by Genaro.Garcia on Feb 5, 2016
Latest reply on Aug 4, 2017 by Genaro.Garcia

I created the vector and raster mapcache data using the "Create Mobile Cache" tool of the "Mobile Tools" within ArcCatalog.

 

This application is created with ArcGIS 10.2.2 SDK for Windows Mobile.

I don’t have any problems loading the Vector mapcache data which are recognized as map layers.

But I’m having problems loading the Raster mapcache data which seem not to be map layer based.

 

'

' --- Load the Raster MapCache  -  Not Working

'

RasterMapCache.StoragePath = Trim(m_OrthoLocalStoragePath)

If RasterMapCache.CacheExists Then

   '

   ' --- Open the Raster MapCache

   '

   RasterMapCache.Open()

   '

   ' --- Add Raster MapCache to Map as (Map Layers)  -  ???

   '

   Me.Map1.MapLayers.Add(RasterMapCache)  'Not Working - Crashing at this statement  

   '

End If

 

 

'

' --- Load the Vector MapCache  -  Working Fine

'

VectorMapCache.StoragePath = Trim(m_MapCacheLocalStoragePath)

If VectorMapCache.CacheExists Then

   '

   ' --- Open the Vector MapCache

   '

   VectorMapCache.Open()

   '

   ' --- Add Vector MapCache to Map as Map Layers

   '

   Me.Map1.MapLayers.Add(VectorMapCache)

   '

End If

Outcomes