ArcGIS Pro secondary development - Zoom feature

   internal void ZoomToFeature(long oid)

        {

            if (oid == -1)

                return;



            var mapView = MapView.Active;



            QueuedTask.Run(() =>

            {

                mapView.ZoomTo(_featureLayer, oid);

                mapView.FlashFeature(_featureLayer, oid);

            });

        }

 

Guess you like

Origin www.cnblogs.com/gisoracle/p/12465231.html
Recommended