Example #1
0
 public Icon(Icon i)
 {
     location = i.getLocation();
     conditions = i.getDeepCopyOfConditions();
     iconId = i.getId();
     isLocal = i.getLocality();
 }
Example #2
0
 public Icon(Icon i)
 {
     location   = i.getLocation();
     conditions = i.getDeepCopyOfConditions();
     iconId     = i.getId();
     isLocal    = i.getLocality();
 }
Example #3
0
        /// <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;
        }
Example #4
0
        /// <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;
        }