XAML-Map-Control/MapControl/TileLayerCollection.cs

18 lines
475 B
C#
Raw Normal View History

// XAML Map Control - http://xamlmapcontrol.codeplex.com/
// Copyright © Clemens Fischer 2012-2013
2012-05-04 12:52:20 +02:00
// Licensed under the Microsoft Public License (Ms-PL)
2012-04-25 22:02:53 +02:00
using System.Collections.ObjectModel;
using System.Linq;
2012-04-25 22:02:53 +02:00
namespace MapControl
{
public class TileLayerCollection : ObservableCollection<TileLayer>
{
public TileLayer this[string sourceName]
{
get { return this.FirstOrDefault(t => t.SourceName == sourceName); }
}
2012-04-25 22:02:53 +02:00
}
}