mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
- Added BingMapsTileLayer - Added TileLayer.DescriptionInlines property - Added global Settings class - Added Phone Silverlight 8.1 build target - Use expiration time of downloaded images for caching
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
|
// Copyright © 2014 Clemens Fischer
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
using System;
|
|
#if WINDOWS_RUNTIME
|
|
using Windows.UI.Xaml.Media.Animation;
|
|
#else
|
|
using System.Windows.Media.Animation;
|
|
#endif
|
|
|
|
namespace MapControl
|
|
{
|
|
/// <summary>
|
|
/// Stores global static properties that control the behaviour of the map control.
|
|
/// </summary>
|
|
public static class Settings
|
|
{
|
|
public static TimeSpan TileUpdateInterval { get; set; }
|
|
public static TimeSpan TileAnimationDuration { get; set; }
|
|
public static TimeSpan MapAnimationDuration { get; set; }
|
|
public static EasingFunctionBase MapAnimationEasingFunction { get; set; }
|
|
|
|
static Settings()
|
|
{
|
|
TileUpdateInterval = TimeSpan.FromSeconds(0.5);
|
|
TileAnimationDuration = TimeSpan.FromSeconds(0.3);
|
|
MapAnimationDuration = TimeSpan.FromSeconds(0.3);
|
|
MapAnimationEasingFunction = new QuadraticEase { EasingMode = EasingMode.EaseOut };
|
|
}
|
|
}
|
|
}
|