usingEsri.ArcGISRuntime.Geometry;usingEsri.ArcGISRuntime.Tasks.Offline;usingSystem;namespaceFormsMapsShared.ArcGisRendering{publicclassOffLineMap{Uriserver=newUri("http://server.arcgisonline.com/arcgis/services/World_Imagery/MapServer");publicEnvelopeMapViewEnvelope{get;set;}publicvoidDownLoadOffLineMap(){// Get the the extent covered by generated tile cache, here we are using// the area being displayed on screenvarexportTileCacheTask=newExportTileCacheTask(server);// Set up GenerateTileCacheParametersvarparameters=newExportTileCacheParameters(){AreaOfInterest=MapViewEnvelope};varjob=exportTileCacheTask.EstimateTileCacheSize(parameters);}}}
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.