Hi (Sorry for the initial french thread...i just translated so that more people can understand and answer to me)...
I am writing an app using Xamarin ArcGIS component so that I can display a saved map stored in ArcGIS Online.
This is working well...
Now the next step is to prepare the things to work offline with this map.
I found the tutorial that describes the step to work on...
In the first steps, one step consists in defining the area of interest with the following code:
Envelope areaOfInterest = GetAreaOfInterest();
GenerateOfflineMapParameters parameters =await task.CreateDefaultGenerateOfflineMapParametersAsync(areaOfInterest);
As far as I am concerning, the area of interest is just the area I defined when saving the map in ArcGIS Online. The envelope can be displayed in one of the menu of ArcGIS Online.
Now my question is: how I can retrieve this enveloppe using the SDK from the Map object I created from the url ?
If I understood correctly you would like to use the initial extent of the webmap as an offline area that you generate?
Have a look to https://community.esri.com/thread/198068-downloading-map-from-portal-for-offline-use#comment-700103 which takes the portal items extent and uses that as an area of interest.
That is a way to do the things…
In the meantime, while debugging my project, I found that the Map object that I had created from Url contains an Item property of type PortalItem that have the waited data (as in tour given reference example).
I did not had time toi update the thread…
Thanks to get read of my thread.
Information System Engineer
Port. + 33 6 15 83 03 56
De : Antti Kajanus
Envoyé : vendredi 11 août 2017 12:31
À : Eric DUCOS <Eric.DUCOS@dexip.com>
Objet : Re: - Re: Retrieve Envelope of a saved map in ArcGIS Online
Re: Retrieve Envelope of a saved map in ArcGIS Online
reply from Antti Kajanus<https://community.esri.com/people/akajanus-esristaff?et=watches.email.thread> in ArcGIS Runtime SDK for .NET - View the full discussion<https://community.esri.com/message/707469-re-retrieve-envelope-of-a-saved-map-in-arcgis-online?commentID=707469&et=watches.email.thread#comment-707469>