From f92894a3e434f87cfe13bc2876d48f5eee550f31 Mon Sep 17 00:00:00 2001 From: "AVWORLD\\pree6725" Date: Tue, 5 Dec 2023 18:05:03 -0800 Subject: [PATCH 1/4] Added doc for GeoViewController --- README.md | 1 + docs/controls.md | 1 + docs/geoviewcontroller.md | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 docs/geoviewcontroller.md diff --git a/README.md b/README.md index 47eea16e5..515c46f2f 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ The ArcGIS Maps SDK for .NET Toolkit contains controls and components to acceler | [Compass](docs/compass.md) | ![compass](https://user-images.githubusercontent.com/1378165/73389839-d9c8f500-4289-11ea-923c-18232489b3e0.png) | Show a compass direction when the map or scene is rotated. | WinUI, MAUI, UWP, WPF | | [FeatureDataField](docs/feature-data-field.md) | ![FeatureDataField](https://user-images.githubusercontent.com/1378165/73389879-ebaa9800-4289-11ea-8e4e-de153a6a371a.png) | Display and optionally allow editing of a single field attribute of a feature. | UWP, WPF | |[FloorFilter](docs/floor-filter.md) | ![image](https://user-images.githubusercontent.com/29742178/158746908-71a39e28-596f-44b6-9230-e2a04bdaeb9e.png) | Browse floor-aware maps and scenes and filter the view to show levels in a facility. | WinUI, MAUI, UWP, WPF | +|[GeoViewController](docs/geoviewcontroller.md) | | A helpfer class to enable easy adoption of MVVM patterns in an ArcGIS Maps SDK for .NET application. | WinUI, MAUI, UWP, WPF | | [Legend](docs/legend.md) | | Display a legend for a map or scene view. | WinUI, MAUI, UWP, WPF | | [MeasureToolbar](docs/measure-toolbar.md) | ![MeasureToolbar](https://user-images.githubusercontent.com/1378165/73389958-0f6dde00-428a-11ea-8c78-7192d49ea605.png) | Measure distances, areas, and features in a map view. | UWP, WPF | |[OverviewMap](docs/overview-map.md) | | Display an interactive inset map for a map or scene. | WinUI, MAUI, UWP, WPF | diff --git a/docs/controls.md b/docs/controls.md index 0ed57bc79..a87d8d637 100644 --- a/docs/controls.md +++ b/docs/controls.md @@ -100,6 +100,7 @@ Use named trace configurations defined in a web map to perform connected trace o |[Compass](compass.md) | ✔ | ✔ | ✔ | |[FeatureDataField](feature-data-field.md) | ✔ | ✔ | ❌ | |[FloorFilter](floor-filter.md) | ✔ | ✔ | ✔ | +|[GeoViewController](geoviewcontroller.md | ✔ | ✔ | ✔ | |[Legend](legend.md) | ✔ | ✔ | ✔ | |[MeasureToolbar](measure-toolbar.md) | ✔ | ✔ | ❌ | |[OverviewMap](overview-map.md) | ✔ | ✔ | ✔ | diff --git a/docs/geoviewcontroller.md b/docs/geoviewcontroller.md new file mode 100644 index 000000000..f03dbfcee --- /dev/null +++ b/docs/geoviewcontroller.md @@ -0,0 +1,21 @@ +# GeoViewController + +GeoViewController is a helper class for enabling MVVM patterns adoption is an ArcGIS Maps SDK for .NET applications. +The helper class allows you to perform view operations on the MapView from your ViewModel, through an attached proxy-object that ensures you keep ViewModel and View separated. + +![compass](https://user-images.githubusercontent.com/1378165/73389839-d9c8f500-4289-11ea-923c-18232489b3e0.png) + +## Features + +- GeoViewController class can manage most common `GeoView` operations like setting viewpoint, performing identify and showing callouts. Any specific `MapView` or `SceneView` operations are not accessible via this helper class. +- The helpher class is extensible so you can add your own custom map and scene operations, or interface for allowing testing (see WPF sample). +- Currently, there are no events exposed. You can use `EventToCommand` or any similar already established approach to forward view events back to the ViewModel (see samples). + + +## Usage + +```xml + +``` \ No newline at end of file From 077f6f252a97caf71fbf87176e84c1ffa478daba Mon Sep 17 00:00:00 2001 From: "AVWORLD\\pree6725" Date: Tue, 5 Dec 2023 18:21:03 -0800 Subject: [PATCH 2/4] Addressed PR Feedback --- docs/controls.md | 4 ++++ docs/geoviewcontroller.md | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/controls.md b/docs/controls.md index a87d8d637..d7727e513 100644 --- a/docs/controls.md +++ b/docs/controls.md @@ -32,6 +32,10 @@ Browse floor-aware maps and scenes and filter the view to show levels in a facil ![FloorFilter](https://user-images.githubusercontent.com/29742178/158746908-71a39e28-596f-44b6-9230-e2a04bdaeb9e.png) +### GeoViewController + +A helpher class for enabling easy adoption of MVVM patterns in ArcGIS Maps SDK for .NET applications. + ### Legend Displays a legend for a map or scene view. diff --git a/docs/geoviewcontroller.md b/docs/geoviewcontroller.md index f03dbfcee..9d080abe6 100644 --- a/docs/geoviewcontroller.md +++ b/docs/geoviewcontroller.md @@ -3,19 +3,23 @@ GeoViewController is a helper class for enabling MVVM patterns adoption is an ArcGIS Maps SDK for .NET applications. The helper class allows you to perform view operations on the MapView from your ViewModel, through an attached proxy-object that ensures you keep ViewModel and View separated. -![compass](https://user-images.githubusercontent.com/1378165/73389839-d9c8f500-4289-11ea-923c-18232489b3e0.png) +![geoviewcontroller](https://user-images.githubusercontent.com/1378165/73389839-d9c8f500-4289-11ea-923c-18232489b3e0.png) ## Features - GeoViewController class can manage most common `GeoView` operations like setting viewpoint, performing identify and showing callouts. Any specific `MapView` or `SceneView` operations are not accessible via this helper class. - The helpher class is extensible so you can add your own custom map and scene operations, or interface for allowing testing (see WPF sample). -- Currently, there are no events exposed. You can use `EventToCommand` or any similar already established approach to forward view events back to the ViewModel (see samples). - ## Usage ```xml + esri:GeoViewController.GeoViewController="{Binding Controller, Source={StaticResource VM}}"> + + + + + + ``` \ No newline at end of file From 92f7915a05a91459a39b9ca591261090b94596f9 Mon Sep 17 00:00:00 2001 From: "AVWORLD\\pree6725" Date: Tue, 5 Dec 2023 18:21:29 -0800 Subject: [PATCH 3/4] Fixed a typo --- docs/controls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/controls.md b/docs/controls.md index d7727e513..709b8a1e4 100644 --- a/docs/controls.md +++ b/docs/controls.md @@ -34,7 +34,7 @@ Browse floor-aware maps and scenes and filter the view to show levels in a facil ### GeoViewController -A helpher class for enabling easy adoption of MVVM patterns in ArcGIS Maps SDK for .NET applications. +A helper class for enabling easy adoption of MVVM patterns in ArcGIS Maps SDK for .NET applications. ### Legend From 36927d5f04cc235296634b4d362547d258c631ca Mon Sep 17 00:00:00 2001 From: "AVWORLD\\pree6725" Date: Tue, 5 Dec 2023 18:24:12 -0800 Subject: [PATCH 4/4] Fixed grammatical errors --- docs/geoviewcontroller.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/geoviewcontroller.md b/docs/geoviewcontroller.md index 9d080abe6..d9664cd21 100644 --- a/docs/geoviewcontroller.md +++ b/docs/geoviewcontroller.md @@ -1,6 +1,6 @@ # GeoViewController -GeoViewController is a helper class for enabling MVVM patterns adoption is an ArcGIS Maps SDK for .NET applications. +GeoViewController is a helper class for enabling easy adoption of MVVM patterns in ArcGIS Maps SDK for .NET applications. The helper class allows you to perform view operations on the MapView from your ViewModel, through an attached proxy-object that ensures you keep ViewModel and View separated. ![geoviewcontroller](https://user-images.githubusercontent.com/1378165/73389839-d9c8f500-4289-11ea-923c-18232489b3e0.png) @@ -8,7 +8,7 @@ The helper class allows you to perform view operations on the MapView from your ## Features - GeoViewController class can manage most common `GeoView` operations like setting viewpoint, performing identify and showing callouts. Any specific `MapView` or `SceneView` operations are not accessible via this helper class. -- The helpher class is extensible so you can add your own custom map and scene operations, or interface for allowing testing (see WPF sample). +- The helper class is extensible. You can add your own custom map and scene operations, or interface for enabling testing (see WPF sample). ## Usage