mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapLayers.cs
This commit is contained in:
parent
09cb68b1bf
commit
3d93a14eb0
|
|
@ -2,9 +2,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
#if WINDOWS_UWP
|
||||
using Windows.UI;
|
||||
using Windows.UI.Xaml;
|
||||
|
|
@ -16,7 +14,7 @@ using System.Windows.Media;
|
|||
|
||||
namespace ViewModel
|
||||
{
|
||||
public partial class MapLayers : INotifyPropertyChanged
|
||||
public class MapLayers : INotifyPropertyChanged
|
||||
{
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
|
|
@ -158,8 +156,6 @@ namespace ViewModel
|
|||
"SevenCs ChartServer WMS",
|
||||
};
|
||||
|
||||
partial void SetBingMapsApiKey();
|
||||
|
||||
public MapLayers()
|
||||
{
|
||||
// Add Bing Maps TileLayers with tile URLs retrieved from the Imagery Metadata Service
|
||||
|
|
@ -167,7 +163,7 @@ namespace ViewModel
|
|||
// 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.
|
||||
|
||||
SetBingMapsApiKey();
|
||||
//BingMapsTileLayer.ApiKey = "...";
|
||||
|
||||
if (!string.IsNullOrEmpty(BingMapsTileLayer.ApiKey))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue