mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4: Upgrade to VS 2017
This commit is contained in:
parent
2aafe32e00
commit
ec47f225b3
142 changed files with 1828 additions and 18384 deletions
29
MapControl/Shared/ViewportChangedEventArgs.cs
Normal file
29
MapControl/Shared/ViewportChangedEventArgs.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
||||
// © 2017 Clemens Fischer
|
||||
// Licensed under the Microsoft Public License (Ms-PL)
|
||||
|
||||
using System;
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
public class ViewportChangedEventArgs : EventArgs
|
||||
{
|
||||
public ViewportChangedEventArgs(bool projectionChanged = false, double longitudeOffset = 0d)
|
||||
{
|
||||
ProjectionChanged = projectionChanged;
|
||||
LongitudeOffset = longitudeOffset;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the map projection has changed, i.e. if a MapTileLayer or MapImageLayer should be
|
||||
/// immediately updated, or MapPath Data in cartesian map coordinates should be recalculated.
|
||||
/// </summary>
|
||||
public bool ProjectionChanged { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Offset of the map center longitude value from the previous viewport.
|
||||
/// Used to detect if the map center has moved across 180° longitude.
|
||||
/// </summary>
|
||||
public double LongitudeOffset { get; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue