2025-02-27 18:46:32 +01:00
|
|
|
|
using System;
|
2017-02-05 18:35:30 +01:00
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
2025-09-15 17:46:31 +02:00
|
|
|
|
public class ViewportChangedEventArgs(bool projectionChanged = false, bool transformCenterChanged = false) : EventArgs
|
2017-02-05 18:35:30 +01:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2022-11-24 23:24:51 +01:00
|
|
|
|
/// 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.
|
2017-06-25 23:05:48 +02:00
|
|
|
|
/// </summary>
|
2025-09-15 17:46:31 +02:00
|
|
|
|
public bool ProjectionChanged { get; } = projectionChanged;
|
2017-06-25 23:05:48 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-04-17 20:10:45 +02:00
|
|
|
|
/// Indicates that the view transform center has moved across 180° longitude.
|
2022-11-24 23:24:51 +01:00
|
|
|
|
/// Used to control when a MapTileLayer should be updated immediately.
|
2017-02-05 18:35:30 +01:00
|
|
|
|
/// </summary>
|
2025-09-15 17:46:31 +02:00
|
|
|
|
public bool TransformCenterChanged { get; } = transformCenterChanged;
|
2017-02-05 18:35:30 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|