mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 16:06:30 +00:00
clean postbuild script
clean warnings
This commit is contained in:
@@ -46,8 +46,11 @@ public partial class MapMatcher : UserControl
|
||||
|
||||
private async Task OpenGpsLocation(int gpsFilesIndex)
|
||||
{
|
||||
var media = GpsFiles.Items[gpsFilesIndex] as MediaFileInfo;
|
||||
//var media = GpsFiles.Items[gpsFilesIndex] as MediaFileInfo;
|
||||
var ann = _annotations.GetValueOrDefault(gpsFilesIndex);
|
||||
if (ann == null)
|
||||
return;
|
||||
|
||||
GpsImageEditor.Background = new ImageBrush
|
||||
{
|
||||
ImageSource = await Path.Combine(_currentDir, ann.Name).OpenImage()
|
||||
@@ -110,9 +113,9 @@ public partial class MapMatcher : UserControl
|
||||
await _gpsMatcherService.RunGpsMatching(dir.FullName, initialLat, initialLon, async res => await SetMarker(res));
|
||||
}
|
||||
|
||||
private async Task SetMarker(GpsMatchResult result)
|
||||
private Task SetMarker(GpsMatchResult result)
|
||||
{
|
||||
await Dispatcher.Invoke(async () =>
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
var marker = new GMapMarker(new PointLatLng(result.Latitude, result.Longitude));
|
||||
var ann = _annotations[result.Index];
|
||||
@@ -126,6 +129,7 @@ public partial class MapMatcher : UserControl
|
||||
SatelliteMap.Position = new PointLatLng(result.Latitude, result.Longitude);
|
||||
SatelliteMap.ZoomAndCenterMarkers(null);
|
||||
});
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
private async Task SetFromCsv(List<MediaFileInfo> mediaFiles)
|
||||
|
||||
Reference in New Issue
Block a user