ESRI.ArcGIS.ADF.Web.UI.WebControls
DisplayOnMap Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > GraphicsLayerNode Class : DisplayOnMap Method




taskResults
The TaskResults control the node is associated with.
Displays the graphics layer on the map.

Syntax

Visual Basic (Declaration) 
Public Overrides Function DisplayOnMap( _
   ByVal taskResults As TaskResults _
) As String
Visual Basic (Usage)Copy Code
Dim instance As GraphicsLayerNode
Dim taskResults As TaskResults
Dim value As String
 
value = instance.DisplayOnMap(taskResults)
C# 
public override string DisplayOnMap( 
   TaskResults taskResults
)

Parameters

taskResults
The TaskResults control the node is associated with.

Return Value

Name of the resource to which the graphics layer has been added.

Remarks

This method adds the graphics layer that the GraphicsLayerNode contains onto the Map. It assumes the TaskResults control passed in has a Map control associated with it. The graphics layer is added to a graphics resource in the MapResourceManager associated with the Map. This graphics resource is added dynamically to the MapResourceManager if it does not already exist. The graphics layer resource, which is named in the return string value, may then need to be refreshed explicitly in order for the map to show the new graphics.

The returned resource name value may be used to refresh the resource. This is useful when the Map contains multiple resources and the Map control uses web-tier blending (see Map.ImageBlendingMode).

See Also

© 2010 All Rights Reserved.