mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 17:46:36 +00:00
fix re-send new batch to gps denied
todo: clear folders, consider better center point to fetch next batch from satellite provider
This commit is contained in:
@@ -376,8 +376,7 @@ public class AnnotatorEventHandler(
|
||||
mainWindow.Dispatcher.Invoke(() =>
|
||||
{
|
||||
mainWindow.StatusHelp.Text = e.Text;
|
||||
if (e.Color.HasValue)
|
||||
mainWindow.StatusHelp.Foreground = new SolidColorBrush(e.Color.Value);
|
||||
mainWindow.StatusHelp.Foreground = e.IsError ? Brushes.Red : Brushes.White;
|
||||
});
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
@@ -389,10 +388,7 @@ public class AnnotatorEventHandler(
|
||||
var mapMatcher = mainWindow.MapMatcherComponent;
|
||||
var marker = new GMapMarker(new PointLatLng(e.Latitude, e.Longitude));
|
||||
var ann = mapMatcher.Annotations[e.Index];
|
||||
marker.Shape = new CircleVisual(marker, Brushes.Blue)
|
||||
{
|
||||
Text = e.Image
|
||||
};
|
||||
marker.Shape = new CircleVisual(marker, size: 14, text: e.Image, background: Brushes.Blue);
|
||||
mapMatcher.SatelliteMap.Markers.Add(marker);
|
||||
ann.Lat = e.Latitude;
|
||||
ann.Lon = e.Longitude;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Azaion.Annotator.Controls
|
||||
{
|
||||
public readonly GMapMarker Marker;
|
||||
|
||||
public CircleVisual(GMapMarker m, Brush background)
|
||||
public CircleVisual(GMapMarker m, int size, string text, Brush background)
|
||||
{
|
||||
ShadowEffect = new DropShadowEffect();
|
||||
Marker = m;
|
||||
@@ -22,14 +22,14 @@ namespace Azaion.Annotator.Controls
|
||||
MouseLeave += CircleVisual_MouseLeave;
|
||||
Loaded += OnLoaded;
|
||||
|
||||
Text = "?";
|
||||
Text = text;
|
||||
|
||||
StrokeArrow.EndLineCap = PenLineCap.Triangle;
|
||||
StrokeArrow.LineJoin = PenLineJoin.Round;
|
||||
|
||||
RenderTransform = _scale;
|
||||
|
||||
Width = Height = 22;
|
||||
Width = Height = size;
|
||||
FontSize = Width / 1.55;
|
||||
|
||||
Background = background;
|
||||
|
||||
Reference in New Issue
Block a user