mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-01 11:05:36 +02:00
Update MapLayers.cs
This commit is contained in:
parent
6bbb5fa5a4
commit
335083d1aa
|
|
@ -2,7 +2,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.IO;
|
||||||
#if WINDOWS_UWP
|
#if WINDOWS_UWP
|
||||||
using Windows.UI;
|
using Windows.UI;
|
||||||
using Windows.UI.Xaml;
|
using Windows.UI.Xaml;
|
||||||
|
|
@ -14,7 +16,7 @@ using System.Windows.Media;
|
||||||
|
|
||||||
namespace ViewModel
|
namespace ViewModel
|
||||||
{
|
{
|
||||||
public class MapLayers : INotifyPropertyChanged
|
public partial class MapLayers : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
public event PropertyChangedEventHandler PropertyChanged;
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
|
||||||
|
|
@ -156,13 +158,15 @@ namespace ViewModel
|
||||||
"SevenCs ChartServer WMS",
|
"SevenCs ChartServer WMS",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
partial void SetBingMapsApiKey();
|
||||||
|
|
||||||
public MapLayers()
|
public MapLayers()
|
||||||
{
|
{
|
||||||
//BingMapsTileLayer.ApiKey = "...";
|
SetBingMapsApiKey();
|
||||||
|
|
||||||
// Bing Maps TileLayers with tile URLs retrieved from the Imagery Metadata Service
|
// Bing Maps TileLayers with tile URLs retrieved from the Imagery Metadata Service
|
||||||
// (see http://msdn.microsoft.com/en-us/library/ff701716.aspx).
|
// (http://msdn.microsoft.com/en-us/library/ff701716.aspx).
|
||||||
// A Bing Maps API Key (see http://msdn.microsoft.com/en-us/library/ff428642.aspx) is required
|
// A Bing Maps API Key (http://msdn.microsoft.com/en-us/library/ff428642.aspx) is required
|
||||||
// for using these layers and must be assigned to the static BingMapsTileLayer.ApiKey property.
|
// for using these layers and must be assigned to the static BingMapsTileLayer.ApiKey property.
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(BingMapsTileLayer.ApiKey))
|
if (!string.IsNullOrEmpty(BingMapsTileLayer.ApiKey))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue