2017-06-25 23:05:48 +02:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
2024-02-03 21:01:53 +01:00
|
|
|
|
// Copyright © 2024 Clemens Fischer
|
2017-02-05 18:35:30 +01:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ViewportChangedEventArgs : EventArgs
|
|
|
|
|
|
{
|
2022-11-24 23:24:51 +01:00
|
|
|
|
public ViewportChangedEventArgs(bool projectionChanged = false, bool transformCenterChanged = false)
|
2017-02-05 18:35:30 +01:00
|
|
|
|
{
|
2017-06-25 23:05:48 +02:00
|
|
|
|
ProjectionChanged = projectionChanged;
|
2022-11-24 23:24:51 +01:00
|
|
|
|
TransformCenterChanged = transformCenterChanged;
|
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>
|
|
|
|
|
|
public bool ProjectionChanged { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-11-24 23:24:51 +01:00
|
|
|
|
/// Indicates that the view transform center has moved across the dateline.
|
|
|
|
|
|
/// Used to control when a MapTileLayer should be updated immediately.
|
2017-02-05 18:35:30 +01:00
|
|
|
|
/// </summary>
|
2022-11-24 23:24:51 +01:00
|
|
|
|
public bool TransformCenterChanged { get; }
|
2017-02-05 18:35:30 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|