Skip to content

Commit b1ac85d

Browse files
authored
Add geoview controller readme doc
Added doc for GeoViewController
2 parents c7c8b80 + 36927d5 commit b1ac85d

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The ArcGIS Maps SDK for .NET Toolkit contains controls and components to acceler
2424
| [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 |
2525
| [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 |
2626
|[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 |
27+
|[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 |
2728
| [Legend](docs/legend.md) | <img src="https://user-images.githubusercontent.com/1378165/73389924-011fc200-428a-11ea-91bf-4ea1c2bf6683.png" width="105" title="Legend" />| Display a legend for a map or scene view. | WinUI, MAUI, UWP, WPF |
2829
| [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 |
2930
|[OverviewMap](docs/overview-map.md) | <img src="https://user-images.githubusercontent.com/29742178/121975740-34f07000-cd37-11eb-9162-462925cb3fe7.png" width="150" title="Overview Map" /> | Display an interactive inset map for a map or scene. | WinUI, MAUI, UWP, WPF |

docs/controls.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Browse floor-aware maps and scenes and filter the view to show levels in a facil
3232

3333
![FloorFilter](https://user-images.githubusercontent.com/29742178/158746908-71a39e28-596f-44b6-9230-e2a04bdaeb9e.png)
3434

35+
### GeoViewController
36+
37+
A helper class for enabling easy adoption of MVVM patterns in ArcGIS Maps SDK for .NET applications.
38+
3539
### Legend
3640

3741
Displays a legend for a map or scene view.
@@ -100,6 +104,7 @@ Use named trace configurations defined in a web map to perform connected trace o
100104
|[Compass](compass.md) ||||
101105
|[FeatureDataField](feature-data-field.md) ||||
102106
|[FloorFilter](floor-filter.md) ||||
107+
|[GeoViewController](geoviewcontroller.md ||||
103108
|[Legend](legend.md) ||||
104109
|[MeasureToolbar](measure-toolbar.md) ||||
105110
|[OverviewMap](overview-map.md) ||||

docs/geoviewcontroller.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# GeoViewController
2+
3+
GeoViewController is a helper class for enabling easy adoption of MVVM patterns in ArcGIS Maps SDK for .NET applications.
4+
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.
5+
6+
![geoviewcontroller](https://user-images.githubusercontent.com/1378165/73389839-d9c8f500-4289-11ea-923c-18232489b3e0.png)
7+
8+
## Features
9+
10+
- 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.
11+
- The helper class is extensible. You can add your own custom map and scene operations, or interface for enabling testing (see WPF sample).
12+
13+
## Usage
14+
15+
```xml
16+
<esri:MapView x:Name="MyMapView"
17+
Map="{Binding Map, Source={StaticResource VM}}"
18+
esri:GeoViewController.GeoViewController="{Binding Controller, Source={StaticResource VM}}">
19+
<Behaviors:Interaction.Triggers>
20+
<Behaviors:EventTrigger EventName="GeoViewTapped" >
21+
<Behaviors:InvokeCommandAction Command="{Binding GeoViewTappedCommand, Source={StaticResource VM}}" PassEventArgsToCommand="True" />
22+
</Behaviors:EventTrigger>
23+
</Behaviors:Interaction.Triggers>
24+
</esri:MapView>
25+
```

0 commit comments

Comments
 (0)