/// <summary> /// Detailed constructor specifying the location the marker should be placed at /// </summary> /// <param name="location">Location of the where the marker should be placed on the map (latitude/longitude or address)</param> public MapMarker(Location location) { this.Local = location; }
/// <summary> /// Constructor /// </summary> /// <param name="gdi">Graphics object used to draw the template, shared between all drawing objects</param> public Map(Graphics gdi) : base(gdi, "") { this._Markers = new List<MapMarker>(); this._Location = new Location(); }
/// <summary> /// Constructor /// </summary> /// <param name="gdi">Graphics object used to draw the template, shared between all drawing objects</param> /// <param name="id">A unique reference to the object being constructed. This isn't really required, /// but useful when debugging as the id is output when the guides are active so you can see which id corresponds /// to which box being drawn. /// </param> public Map(Graphics gdi, string id) : base(gdi, id) { this._Markers = new List<MapMarker>(); this._Location = new Location(); }
/// <summary> /// Copy constructor: Initialises this object from the copy /// </summary> /// <param name="copy">Object to make a copy from</param> public Map(Map copy) : base((Image)copy) { _Location = copy._Location; _MapType = copy._MapType; _ZoomLevel = copy._ZoomLevel; _Width = copy._Width; _Height = copy._Height; _Markers = new List<MapMarker>(copy._Markers); }