Пример #1
0
        /// <summary>
        /// Pans to a bookmark in a map view
        /// </summary>
        /// <param name="bookMark"> Mapping module Bookmark object</param>
        /// <param name="mapView"> A Map view</param>
        public static async void PanTo(this MapViewInternal mapView, Bookmark bookMark)
        {
            ArcGIS.Core.CIM.CIMBookmark bmkDef = await bookMark.GetDefinitionAsync();

            mapView.PanTo(bmkDef.Location);
        }
 /// <summary>
 /// Pans to a bookmark in a map view
 /// </summary>
 /// <param name="bookMark"> Mapping module Bookmark object</param>
 /// <param name="mapView"> A Map view</param>
 public static async void PanTo(this MapViewInternal mapView, Bookmark bookMark)
 {
     ArcGIS.Core.CIM.CIMBookmark bmkDef = await bookMark.GetDefinitionAsync();
     mapView.PanTo(bmkDef.Location);
 }