mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MainWindow.xaml.cs
This commit is contained in:
parent
15c5f3c3f1
commit
8ddb5e595e
|
|
@ -11,19 +11,20 @@ namespace SampleApplication
|
||||||
{
|
{
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : Window
|
||||||
{
|
{
|
||||||
static MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
//MapProjectionFactory.Instance = new MapControl.Projections.GeoApiProjectionFactory();
|
//MapProjectionFactory.Instance = new MapControl.Projections.GeoApiProjectionFactory();
|
||||||
|
|
||||||
//TileImageLoader.Cache = new MapControl.Caching.ImageFileCache(TileImageLoader.DefaultCacheFolder);
|
//TileImageLoader.Cache = new MapControl.Caching.ImageFileCache(TileImageLoader.DefaultCacheFolder);
|
||||||
//TileImageLoader.Cache = new MapControl.Caching.FileDbCache(TileImageLoader.DefaultCacheFolder);
|
//TileImageLoader.Cache = new MapControl.Caching.FileDbCache(TileImageLoader.DefaultCacheFolder);
|
||||||
//TileImageLoader.Cache = new MapControl.Caching.SQLiteCache(TileImageLoader.DefaultCacheFolder);
|
//TileImageLoader.Cache = new MapControl.Caching.SQLiteCache(TileImageLoader.DefaultCacheFolder);
|
||||||
|
|
||||||
|
// https://neosmart.net/blog/sqlite-cache-for-asp-net-core/
|
||||||
//TileImageLoader.Cache = new NeoSmart.Caching.Sqlite.SqliteCache(
|
//TileImageLoader.Cache = new NeoSmart.Caching.Sqlite.SqliteCache(
|
||||||
// new NeoSmart.Caching.Sqlite.SqliteCacheOptions { CachePath = System.IO.Path.Combine(TileImageLoader.DefaultCacheFolder, "TileCache.db") });
|
// new NeoSmart.Caching.Sqlite.SqliteCacheOptions { CachePath = System.IO.Path.Combine(TileImageLoader.DefaultCacheFolder, "TileCache.db") });
|
||||||
}
|
|
||||||
|
|
||||||
public MainWindow()
|
//Closed += (s, e) => (TileImageLoader.Cache as IDisposable)?.Dispose();
|
||||||
{
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
AddTestLayers();
|
AddTestLayers();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue