private void MyMap_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer; GeneralTransform generalTransform = MyMap.TransformToVisual(Application.Current.RootVisual); System.Windows.Point transformScreenPnt = generalTransform.Transform(e.GetPosition(this.MyMap)); var graphics = graphicsLayer.FindGraphicsInHostCoordinates(transformScreenPnt); }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.