/// <summary> /// Creates a new feature layer for visualizing map features. /// </summary> /// <param name="Id">The name or identification of this feature layer.</param> /// <param name="MapControl">The hosting map control.</param> /// <param name="ZIndex">The z-index of this feature layer.</param> public AMapLayer(String Id, MapControl MapControl, Int32 ZIndex) : this() { #region Initial Checks if (String.IsNullOrEmpty(Id.Trim())) { throw new ArgumentNullException("Id", "The map layer identification must not be null or empty!"); } if (MapControl == null) { throw new ArgumentNullException("MapControl", "The MapControl must not be null!"); } if (MapControl.ContainsLayerId(Id)) { throw new ApplicationException("The given 'Id' is already used!"); } #endregion this.Id = Id; this.MapControl = MapControl; this.ZIndex = ZIndex; }