C# Class ArcGISPortalViewer.ViewModel.MapViewModel

Inheritance: ViewModelBase
Datei anzeigen Open project: Esri/arcgis-portalviewer-dotnet

Private Properties

Property Type Description
AddGraphicsLayer void
CreateIdentifyResultsLayer void
CreateMeasureResultsLayer void
CreateSearchResultLayer void
CreateSelectionGraphic Graphic
GetBookmarks IEnumerable
GetDistance double
GetOperationalLayers IEnumerable
GetPopupInfo PopupInfo
GetVertexSymbol Esri.ArcGISRuntime.Symbology.Symbol
HighlightSelection void
OnBackClick void
OnBasemapPicked void
OnCheckAutoPanMode void
OnClearGraphics void
OnCollapsibleTabOpened void
OnMapTapped void
OnPopupTapped void
OnQuerySubmitted void
OnSelectedItem void
OnSetView void
OnUpdateMeasureArea void
RemoveGraphicsLayer void
ResetIdentify void
SetResult void
SetViewAsync Task
SetupLayers void
UpdateWebMap Task

Public Methods

Method Description
FlyToAsync ( Esri.ArcGISRuntime.Geometry.Geometry flyTo, double margin = 20 ) : Task
FlyToAsync ( MapPoint to, double scale, double margin = 20 ) : Task
Identify ( Point position, MapPoint location, LayerCollection layerCollection ) : Task
MapViewModel ( ) : ArcGISPortalViewer.Controls
ParseIdentifyResults ( IDictionary identifyResults ) : IEnumerable
Query ( string text ) : Task

Private Methods

Method Description
AddGraphicsLayer ( GraphicsLayer layer ) : void
CreateIdentifyResultsLayer ( ) : void

Adds graphics layer to hold identify results.

CreateMeasureResultsLayer ( ) : void

Adds graphics layer to hold measure results.

CreateSearchResultLayer ( ) : void

Creates the layer used for displaying search results

CreateSelectionGraphic ( Feature feature ) : Graphic
GetBookmarks ( ) : IEnumerable
GetDistance ( Envelope extent ) : double
GetOperationalLayers ( ) : IEnumerable
GetPopupInfo ( Layer layer, int subLayerId = -1 ) : PopupInfo
GetVertexSymbol ( int index ) : Esri.ArcGISRuntime.Symbology.Symbol
HighlightSelection ( ) : void
OnBackClick ( object obj ) : void
OnBasemapPicked ( object parameter ) : void
OnCheckAutoPanMode ( object commandParameter ) : void
OnClearGraphics ( object commandParameter ) : void
OnCollapsibleTabOpened ( object obj ) : void
OnMapTapped ( object obj ) : void
OnPopupTapped ( object obj ) : void
OnQuerySubmitted ( object obj ) : void
OnSelectedItem ( object obj ) : void
OnSetView ( object obj ) : void
OnUpdateMeasureArea ( object commandParameter ) : void
RemoveGraphicsLayer ( GraphicsLayer layer ) : void
ResetIdentify ( ) : void
SetResult ( IEnumerable locations ) : void
SetViewAsync ( Esri boundingGeometry, double margin = 20 ) : Task

Sets the view on the extent of passed geometry while considering if side panel is opened.

SetupLayers ( ) : void

Called after the webmap viewmodel has loaded

UpdateWebMap ( ) : Task

Method Details

FlyToAsync() public method

public FlyToAsync ( Esri.ArcGISRuntime.Geometry.Geometry flyTo, double margin = 20 ) : Task
flyTo Esri.ArcGISRuntime.Geometry.Geometry
margin double
return Task

FlyToAsync() public method

public FlyToAsync ( MapPoint to, double scale, double margin = 20 ) : Task
to MapPoint
scale double
margin double
return Task

Identify() public method

public Identify ( Point position, MapPoint location, LayerCollection layerCollection ) : Task
position Point
location MapPoint
layerCollection LayerCollection
return Task

MapViewModel() public method

public MapViewModel ( ) : ArcGISPortalViewer.Controls
return ArcGISPortalViewer.Controls

ParseIdentifyResults() public method

public ParseIdentifyResults ( IDictionary identifyResults ) : IEnumerable
identifyResults IDictionary
return IEnumerable

Query() public method

public Query ( string text ) : Task
text string
return Task