Beispiel #1
0
 /// <summary>
 /// Initializes a new map
 /// </summary>
 public Map()
 {
     BackColor            = Color.White;
     layers               = new LayerCollection();
     layers.LayerAdded   += LayersLayerAdded;
     layers.LayerRemoved += LayersLayerRemoved;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new map
 /// </summary>
 public Map()
 {
     BackColor = Color.White;
     Layers    = new LayerCollection();
     Viewport  = new Viewport {
         Center = { X = double.NaN, Y = double.NaN }, Resolution = double.NaN
     };
 }
Beispiel #3
0
        private static IReadOnlyList <double> DetermineResolutions(LayerCollection layers)
        {
            var baseLayer = layers.FirstOrDefault(l => l.Enabled && l.Resolutions != null && l.Resolutions.Count > 0);

            if (baseLayer == null)
            {
                return(new List <double>());
            }
            return(baseLayer.Resolutions);
        }
Beispiel #4
0
 /// <summary>
 /// Initializes a new map
 /// </summary>
 public Map()
 {
     BackColor = Color.White;
     Layers    = new LayerCollection();
 }