コード例 #1
0
        public TimeLineControl()
        {
            InitializeComponent();
            satelliteImages = new List<SatelliteImage>();
            includedSatelliteImages = new List<SatelliteImage>();

            //Cuando se inicializa el Timeline Control carga las últimas 1000 imágenes satelitales que encuentra (SP GET ALL)
            imageRequests = new ImageRequests(Constants.BaseApiUrl);
            imageRequests.ImageRequestReceived += imageRequests_ImageRequestReceived;

            this.SliderAnimation1.Completed += SliderAnimation1_Completed;
            this.SliderAnimation2.Completed += SliderAnimation2_Completed;

            this.Loaded += TimeLineControl_Loaded;
        }
コード例 #2
0
        private static void GetPermalinkLayers()
        {
            string layers;

            try { layers = HtmlPage.Document.QueryString["layers"]; }
            catch (KeyNotFoundException) { return; }

            if (!layers.Equals(""))
            {
                _layerlist = layers.Split(',');
                if (_layerlist.Length == 0) return;

                imageRequest = new ImageRequests(Constants.BaseApiUrl);
                imageRequest.ImageRequestReceived += imageRequest_ImageRequestReceived;
                imageRequest.GetAllImagery();
            }
        }