mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 07:55:13 +00:00
CsWinRT1028, C# LangVersion 12
This commit is contained in:
parent
e1a4ba3fd6
commit
c0783efb4a
27 changed files with 67 additions and 119 deletions
|
|
@ -2,25 +2,19 @@
|
|||
|
||||
namespace MapControl
|
||||
{
|
||||
public class ViewportChangedEventArgs : EventArgs
|
||||
public class ViewportChangedEventArgs(bool projectionChanged = false, bool transformCenterChanged = false) : EventArgs
|
||||
{
|
||||
public ViewportChangedEventArgs(bool projectionChanged = false, bool transformCenterChanged = false)
|
||||
{
|
||||
ProjectionChanged = projectionChanged;
|
||||
TransformCenterChanged = transformCenterChanged;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the map projection has changed. Used to control when
|
||||
/// a MapTileLayer or a MapImageLayer should be updated immediately,
|
||||
/// or MapPath Data in projected map coordinates should be recalculated.
|
||||
/// </summary>
|
||||
public bool ProjectionChanged { get; }
|
||||
public bool ProjectionChanged { get; } = projectionChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that the view transform center has moved across 180° longitude.
|
||||
/// Used to control when a MapTileLayer should be updated immediately.
|
||||
/// </summary>
|
||||
public bool TransformCenterChanged { get; }
|
||||
public bool TransformCenterChanged { get; } = transformCenterChanged;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue