Exemple #1
0
        public KmlIconStyle(XmlNode parent, Logger log) : this()
        {
            Log += log;
            foreach (XmlNode node in parent.ChildNodes)
            {
                string key = node.Name.ToLower();
                switch (key)
                {
                case "color":
                    Colour = new KmlColour(node.InnerText, log);
                    break;

                case "scale":
                    Scale = float.Parse(node.InnerText);
                    break;

                case "icon":
                    _icon = new KmlIcon(node, log);
                    break;

                default:
                    break;
                }
                ;
            }
        }
Exemple #2
0
 public KmlIconStyle() : base()
 {
     _scale   = 1;
     _heading = 0.0f;
     _icon    = new KmlIcon();
     _hotSpot = new KmlHotSpot();
 }
Exemple #3
0
        public KmlOverlay(XmlNode parent, Logger log) : base(parent)
        {
            Log += log;
            foreach (XmlNode node in parent.ChildNodes)
            {
                string key = node.Name.ToLower();
                switch (key)
                {
                case "color":
                    _colour = new KmlColour(node, log);
                    break;

                case "drawOrder":
                    _drawOrder = Int32.Parse(node.InnerText);
                    break;

                case "Icon":
                    _icon = new KmlIcon(node, log);
                    break;
                }
                ;
            }
        }
Exemple #4
0
        public new void handleNode(XmlNode node, Logger log)
        {
            string key = node.Name.ToLower();

            switch (key)
            {
            case "color":
                _colour = new KmlColour(node.InnerText, log);
                break;

            case "draworder":
                _drawOrder = int.Parse(node.InnerText);
                break;

            case "icon":
                _icon = new KmlIcon(node, log);
                break;

            default:
                base.handleNode(node, log);
                break;
            }
            ;
        }