public Icon(Icon i) { location = i.getLocation(); conditions = i.getDeepCopyOfConditions(); iconId = i.getId(); isLocal = i.getLocality(); }
/// <summary> /// Constructor. Sets the icon, color, and style name. /// </summary> /// <param name="icon">Icon --> Used for icon location when creating styles in KML</param> /// <param name="color">int --> Overlay color for KML</param> /// <param name="styleName">String --> unique style name</param> public Style(Icon icon, UInt64 color, String styleName) { this.icon = new Icon(); this.icon.setId(icon.getId()); this.icon.setLocality(icon.getLocality()); this.icon.setLocation(icon.getLocation()); foreach (Condition c in icon.getConditions()) { this.icon.setConditions(c); } this.color = color; this.styleName = styleName; }