Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions MapUiTools/Shared/MapProjectionsMenuButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class MapProjectionItem
#endif
public class MapProjectionsMenuButton : MenuButton
{
private string selectedProjection;
private string _selectedProjection;

public MapProjectionsMenuButton()
: base("\uE809")
Expand Down Expand Up @@ -86,10 +86,10 @@ private void MapProjectionClicked(object sender, RoutedEventArgs e)

private void SetMapProjection(string projection)
{
if (selectedProjection != projection)
if (_selectedProjection != projection)
{
selectedProjection = projection;
Map.MapProjection = MapProjectionFactory.Instance.GetProjection(selectedProjection);
_selectedProjection = projection;
Map.MapProjection = MapProjection.Parse(_selectedProjection);
}

UpdateCheckedStates();
Expand All @@ -99,7 +99,7 @@ private void UpdateCheckedStates()
{
foreach (var item in GetMenuItems())
{
item.IsChecked = selectedProjection == (string)item.Tag;
item.IsChecked = _selectedProjection == (string)item.Tag;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion MapUiTools/WPF/MapUiTools.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="XAML.MapControl.WPF" Version="13.6.0" />
<PackageReference Include="XAML.MapControl.WPF" Version="17.1.0" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion PhotoLocator/MapDisplay/MapView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void MapMouseMove(object sender, MouseEventArgs e)

if (start != null)
{
measurementLine.Locations = LocationCollection.OrthodromeLocations(start, location);
measurementLine.Locations = LocationCollection.GeodesicLocations(start, location);
mouseLocation.Text += GetDistanceText(location.GetDistance(start));
}
}
Expand Down
2 changes: 1 addition & 1 deletion PhotoLocator/PhotoLocator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<PackageReference Include="Microsoft-WindowsAPICodePack-ShellExtensions" Version="1.1.5" />
<PackageReference Include="OpenCvSharp4.Windows" Version="4.10.0.20240616" />
<PackageReference Include="SunCalcNet" Version="1.2.3" />
<PackageReference Include="XAML.MapControl.WPF" Version="13.6.0" />
<PackageReference Include="XAML.MapControl.WPF" Version="17.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading