コード例 #1
0
ファイル: MapView.xaml.cs プロジェクト: hansmei/PhotoVis
        private void ShowAllData()
        {
            PushpinLayer.Children.Clear();

            if (_generatingData)
            {
                StatusTbx.Text += "Database is still loading.\r\n";
                return;
            }

            if (App.MapVM.FilterdImageLocations.Count == 0)
            {
                StatusTbx.Text += "No database data found.\r\n";
                return;
            }

            foreach (ImageAtLocation img in App.MapVM.FilterdImageLocations)
            {
                ColoredPushpin p = _options.RenderEntity(img);
                string         strokeColor;
                p.FillColor   = App.MapVM.GetPushpinColors(img, out strokeColor);
                p.StrokeColor = strokeColor;
                PushpinLayer.Children.Add(p);
            }

            //StatusTbx.Text += "All data displayed without clustering.\r\n";
        }
コード例 #2
0
        private void ViewAllData_Clicked(object sender, RoutedEventArgs e)
        {
            MyMap.Children.Clear();

            if (_generatingData)
            {
                StatusTbx.Text += "Mock data is still generating.\r\n";
                return;
            }

            if (_mockData == null)
            {
                StatusTbx.Text += "No mock data generated.\r\n";
                return;
            }

            foreach (var entity in _mockData)
            {
                MyMap.Children.Add(_options.RenderEntity(entity));
            }

            StatusTbx.Text += "All data displayed without clustering.\r\n";
        }