mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
21 lines
819 B
C#
21 lines
819 B
C#
using System;
|
|
|
|
namespace MapControl
|
|
{
|
|
public class ViewportChangedEventArgs(bool projectionChanged = false, bool transformCenterChanged = false) : EventArgs
|
|
{
|
|
/// <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; } = 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; } = transformCenterChanged;
|
|
}
|
|
}
|