-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added doc for GeoViewController
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# GeoViewController | ||
|
||
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) | ||
|
||
## 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 helper class is extensible. You can add your own custom map and scene operations, or interface for enabling testing (see WPF sample). | ||
|
||
## Usage | ||
|
||
```xml | ||
<esri:MapView x:Name="MyMapView" | ||
Map="{Binding Map, Source={StaticResource VM}}" | ||
esri:GeoViewController.GeoViewController="{Binding Controller, Source={StaticResource VM}}"> | ||
<Behaviors:Interaction.Triggers> | ||
<Behaviors:EventTrigger EventName="GeoViewTapped" > | ||
<Behaviors:InvokeCommandAction Command="{Binding GeoViewTappedCommand, Source={StaticResource VM}}" PassEventArgsToCommand="True" /> | ||
</Behaviors:EventTrigger> | ||
</Behaviors:Interaction.Triggers> | ||
</esri:MapView> | ||
``` |