// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control // © 2022 Clemens Fischer // Licensed under the Microsoft Public License (Ms-PL) using System; namespace MapControl { public class ViewportChangedEventArgs : EventArgs { public ViewportChangedEventArgs(bool projectionChanged = false, double longitudeOffset = 0d) { ProjectionChanged = projectionChanged; LongitudeOffset = longitudeOffset; } /// /// Indicates if the map projection has changed, i.e. if a MapTileLayer or MapImageLayer should /// be updated immediately, or MapPath Data in cartesian map coordinates should be recalculated. /// public bool ProjectionChanged { get; } /// /// Offset of the map center longitude value from the previous viewport. /// Used to detect if the map center has moved across 180° longitude. /// public double LongitudeOffset { get; } } }