public ReadOnlyObservableCollection<Bookmark> GetBookmarks()
Public Function GetBookmarks() As ReadOnlyObservableCollection(Of Bookmark)
Return Value
The collection of bookmarks for the map.
public ReadOnlyObservableCollection<Bookmark> GetBookmarks()
Public Function GetBookmarks() As ReadOnlyObservableCollection(Of Bookmark)
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
public Task<ReadOnlyObservableCollection<Bookmark>> GetActiveMapBookmarksAsync() { return QueuedTask.Run(() => { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return null; //Return the collection of bookmarks for the map. return mapView.Map.GetBookmarks(); }); }
Target Platforms: Windows 10, Windows 8.1