2017-06-25 23:05:48 +02:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
2019-03-27 18:39:59 +01:00
|
|
|
|
// © 2019 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
|
|
|
|
|
|
{
|
2017-06-25 23:05:48 +02:00
|
|
|
|
public ViewportChangedEventArgs(bool projectionChanged = false, double longitudeOffset = 0d)
|
2017-02-05 18:35:30 +01:00
|
|
|
|
{
|
2017-06-25 23:05:48 +02:00
|
|
|
|
ProjectionChanged = projectionChanged;
|
|
|
|
|
|
LongitudeOffset = longitudeOffset;
|
2017-02-05 18:35:30 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-02-18 16:17:13 +01:00
|
|
|
|
/// Indicates if the map projection has changed, i.e. if a MapTileLayer or MapImageLayer should
|
|
|
|
|
|
/// be updated immediately, or MapShape Data in cartesian map coordinates should be recalculated.
|
2017-06-25 23:05:48 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool ProjectionChanged { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Offset of the map center longitude value from the previous viewport.
|
2017-02-05 18:35:30 +01:00
|
|
|
|
/// Used to detect if the map center has moved across 180° longitude.
|
|
|
|
|
|
/// </summary>
|
2017-06-25 23:05:48 +02:00
|
|
|
|
public double LongitudeOffset { get; }
|
2017-02-05 18:35:30 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|