Select to view content in your preferred language

Using 9.3 SDC maps in 10.0

772
1
05-21-2012 11:44 AM
JayLaseman
New Contributor
So if I understand what I have been reading, it is possible to use an SDC map in a mobile app.

I have a laptop app that is used in areas and instances where communications are down.
The app is used country wide so my sdc maps are about 1Gb which has not been a problem.
I think pre-cached tiles would be larger than that.
I have been using SDC maps for the last 5 years with this app.
I have 2 bin files and a mapschema for the writeable layers which load fine.
I can't figure out how to load the readonly basemap (navmap)

What I can't figure out is how to convert the code from 9.3 to 10.0

9.3 CODE

sdclayer = new SdcMapLayer(@mobileService1.CacheStoragePath + "\\StormDamage BaseMap.navmap");
// load sdc map
map1.MapLayers.Add(sdclayer);

Any help would be appreciated.
0 Kudos
1 Reply
JayLaseman
New Contributor
I got this to work using the ESRI StreetMaps for Mobile. I copied the needed layer files into the mapcache directory holding the Streemap.



using ESRI.ArcGIS.Mobile.DataProducts.StreetMapData;

try
            {
                StreetMapDataset smd = new StreetMapDataset(@mobileCache1.StoragePath + "\\_Map.navmap");
                StreetMapLayer sdclayer = new StreetMapLayer(smd);
                smd.Open();
                map1.MapLayers.Add(sdclayer);
            }
0 Kudos