Example #1
0
        protected string refreshModeToString(KmlRefreshModes value)
        {
            switch (value)
            {
            case KmlRefreshModes.onInterval:
                return("onInterval");

            case KmlRefreshModes.onExpire:
                return("onExpire");

            default:
                return("onChange");
            }
            ;
        }
Example #2
0
        public KmlIcon(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 "href":
                    _href = node.InnerText;
                    break;

                case "refreshmode":
                    _refreshMode = refreshModeFromString(node.InnerText);
                    break;

                case "refreshinterval":
                    _refreshInterval = float.Parse(node.InnerText);
                    break;

                case "viewrefreshmode":
                    _viewRefreshMode = viewRefreshModeFromString(node.InnerText);
                    break;

                case "viewrefreshtime":
                    _viewRefreshTime = float.Parse(node.InnerText);
                    break;

                case "viewboundscale":
                    _viewBoundScale = float.Parse(node.InnerText);
                    break;

                case "viewformat":
                    _viewFormat = node.InnerText;
                    break;

                case "httpquery":
                    _httpQuery = node.InnerText;
                    break;
                }
                ;
            }
        }
Example #3
0
 public void setRefreshMode(KmlRefreshModes mode)
 {
     _refreshMode = mode;
 }