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; } ; } }
public KmlBalloonStyle(XmlNode parent, Logger log) : this() { Log += log; if (null != parent.Attributes["id"]) { _id = parent.Attributes["id"].Value; } foreach (XmlNode node in parent.ChildNodes) { string key = node.Name.ToLower(); switch (key) { case "bgcolor": _colour = new KmlColour(node.InnerText, log); break; case "textcolor": _textColour = new KmlColour(node.InnerText, log); break; case "text": _text = node.InnerText; break; case "displaymode": _visible = (node.InnerText.ToLower().Equals("hide") ? false : true); break; } ; } }
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; } ; } }
public KmlColourStyle(XmlNode parent, Logger log) : this() { Log += log; if (null != parent.Attributes["id"]) { _id = parent.Attributes["id"].Value; } foreach (XmlNode node in parent.ChildNodes) { string key = node.Name.ToLower(); switch (key) { case "color": _colour = new KmlColour(node.InnerText, log); break; case "colormode": _colourMode = colourModeFromString(node.InnerText); break; } ; } }
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; } ; }