private void AddMarker(RoiPoint point) { var m = new GMarkerGoogle(point.Point, point.Marker) { ToolTipText = $"ROI #{point.No}\n" + point.Point, ToolTipMode = MarkerTooltipMode.OnMouseOver, }; this.mapOverlay.Markers.Add(m); }
private void TrackPoint(PointLatLngAlt gimbalPoint) { var screenshotPath = DateTime.Now.ToString("yyyyMMdd-HHmmss") + ".jpg"; var result = false; //Capturer.ScreenCapture.Capture("gst-launch-1.0", screenshotPath); var point = new PointLatLngAlt(gimbalPoint); var p = new RoiPoint(point, this.roiPoints.Count + 1) { ScreenshotPath = result ? screenshotPath : null }; this.roiPoints.Add(p); this.AddMarker(p); }