AddViewshedLayer
AddViewshedLayer adds a new viewshed layer to a specified map layer object. The layer object can be any grid-based map layer, i.e. ContourLayer object, ColorReliefLayer object, ReliefLayer object, VectorLayer object, and WatershedLayer object.
Syntax
object. AddViewshedLayer( MapLayer, PointX, PointY )
| 
                                                     Parameter  | 
                                                
                                                     Type  | 
                                                
                                                     Default  | 
                                                
                                                     Description  | 
                                            
| 
                                                     MapLayer  | 
                                                
                                                     Layer object  | 
                                                
                                                     required; This specifies the layer object on which the viewshed analysis is performed.  | 
                                            |
| 
                                                     PointX  | 
                                                
                                                     Double  | 
                                                
                                                     required; This provides the transmitter X coordinate in the specified layer's map units.  | 
                                            |
| 
                                                     PointY  | 
                                                
                                                     Double  | 
                                                
                                                     required; This provides the transmitter Y coordinate in the specified layer's map units.  | 
                                            
Example
This example demonstrates how to add a viewshed to a contour map.
'Add a viewshed to the contour map named ContourLayer
Set ViewshedLayer = Plot.Shapes.AddViewshedLayer(MapLayer:=ContourLayer, _
PointX:=474933, PointY:= 437818)
Used by: Shapes Collection