public ProSnippetMapTool() { //Set the MapTool base class' OverlayControlID to the DAML id of your embeddable control in the constructor this.OverlayControlID = "ProAppModule1_EmbeddableControl1"; } protected override void OnToolMouseDown(MapViewMouseButtonEventArgs e) { if (e.ChangedButton == System.Windows.Input.MouseButton.Left) e.Handled = true; } protected override Task HandleMouseDownAsync(MapViewMouseButtonEventArgs e) { return QueuedTask.Run(() => { //assign the screen coordinate clicked point to the MapTool base class' OverlayControlLocation property. this.OverlayControlPositionRatio = e.ClientPoint; }); }
Target Platforms: Windows 11, Windows 10