I know how to download maps(geodatabase) and basemaps(TPK) seperately.
Now I want to download a map of a particular Extent.
Basicallly i want to downlaod basemap along with the layers but not whole basemap only selected Extent I want to download along with Layers.
Just to clarify, you can't download a "package" (tile and feature) all at once. You'll have to get one first, check the result, and then get the other. Once both are downloaded, this will create the "package" you need to use when offline.
Your post stated you knew how to download TPK's, and I shared code for the geodatabase. Are you just asking how to get the extent?
Using ExportTileCacheParameters, it would be something like, where the mapExtent variable is:
//Create the service for the export
var tileService = new ArcGISTiledLayer(new Uri (StorageManager.CurrentBasemapUrl));
if (tileService.LoadStatus != Esri.ArcGISRuntime.LoadStatus.Loaded)
await tileService.LoadAsync ();
//Create the export task
_exportTileTask = await ExportTileCacheTask.CreateAsync(new Uri (StorageManager.CurrentBasemapUrl));
//Create the export parameters
_tileParameters = await _exportTileTask.CreateDefaultExportTileCacheParametersAsync (mapExtent,
I agree with Chad. MMPK data will be read only. If you want to edit data you, you should use GenerateGeodatabase.
Another angle is that the MMPK will only include vector data (I think I'm correct here). If you want a local (aka offline) basemap, you additionally need a TPK.
I'm not 100% on all of this, and therefore happy if someone wants to confirm or correct me on either of the above points.
BTW. I'm using ArcGIS Pro 1.3.1 to create my .mmpk files.