示例#1
0
        private void InitializeProperties()
        {
            queryFilter          = new EarthquakeQueryFilter();
            queryResults         = new Collection <EarthquakeViewModel>();
            displayTypes         = new ObservableCollection <FeatureLayerViewModel>();
            filteredQueryResults = new ObservableCollection <EarthquakeViewModel>();
            SelectedMapMode      = MapControlModes.FirstOrDefault();

            foreach (FeatureLayer featureLayer in mapModel.StyleLayerOverlay.Layers.OfType <FeatureLayer>())
            {
                DisplayTypes.Add(new FeatureLayerViewModel(featureLayer));
            }
            SelectedFeatureLayer = DisplayTypes.FirstOrDefault();
        }
        private void InitializeProperties()
        {
            queryFilter = new EarthquakeQueryFilter();
            queryResults = new Collection<EarthquakeViewModel>();
            displayTypes = new ObservableCollection<FeatureLayerViewModel>();
            filteredQueryResults = new ObservableCollection<EarthquakeViewModel>();
            SelectedMapMode = MapControlModes.FirstOrDefault();

            foreach (FeatureLayer featureLayer in mapModel.StyleLayerOverlay.Layers.OfType<FeatureLayer>())
            {
                DisplayTypes.Add(new FeatureLayerViewModel(featureLayer));
            }
            SelectedFeatureLayer = DisplayTypes.FirstOrDefault();
        }