-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added doc for GeoViewController #535
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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 helper class for enabling easy adoption of MVVM patterns in ArcGIS Maps SDK for .NET applications. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think most people will know what MVVM means, but just to be safe (?).
Suggested change
|
||||||
|
||||||
### Legend | ||||||
|
||||||
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 | |||||
|[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) | ✔ | ✔ | ✔ | | ||||||
|
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. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
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). | ||||||||||
Comment on lines
+10
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
## 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> | ||||||||||
``` | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the VM code be included? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking about it but then I thought it would be like pasting the entire sample code. I think users can refer to WPF sample, if needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.