C# Class NAAddTraversalResultToMap.AddTraversalResultsToMap

Inheritance: ESRI.ArcGIS.Desktop.AddIns.Button
Show file Open project: Esri/arcobjects-sdk-community-samples

Public Methods

Method Description
AddTraversalResultsToMap ( ) : ESRI.ArcGIS.Carto

Protected Methods

Method Description
OnClick ( ) : void

OnClick is the main function for the add-in. When the button is clicked in ArcMap, this code will execute. Note that if you re-solve the analysis layer associated with the traversal result, any open attribute tables associated with the traversal result will disconnect and need to be reopened.

OnUpdate ( ) : void

Private Methods

Method Description
AddNATraversalResultLayersToGroup ( IGroupLayer groupLayer, INAResult result ) : void

AddNATraversalResultLayersToGroup will take the traversal results from an INAResult and add them to the map as a group layer

GetLayerIndex ( ILayer layer ) : int
GetRenderer ( esriNetworkElementType networkElementType ) : IFeatureRenderer

GetRenderer will return a feature renderer with symbology appropriate to the specified element type

GetTraversalResultLayer ( esriNetworkElementType elementType, INATraversalResultQuery2 naTraversalResultQuery ) : IFeatureLayer

GetTraversalResultLayer will generate a layer out of the traversal result for the specified element type

Method Details

AddTraversalResultsToMap() public method

public AddTraversalResultsToMap ( ) : ESRI.ArcGIS.Carto
return ESRI.ArcGIS.Carto

OnClick() protected method

OnClick is the main function for the add-in. When the button is clicked in ArcMap, this code will execute. Note that if you re-solve the analysis layer associated with the traversal result, any open attribute tables associated with the traversal result will disconnect and need to be reopened.
protected OnClick ( ) : void
return void

OnUpdate() protected method

protected OnUpdate ( ) : void
return void