AddReliefLayer
The AddReliefLayer method has been deprecated. Use AddColorReliefLayer instead.
AddReliefLayer adds a new shaded relief layer to a specified MapFrame object. Returns a ReliefLayer Object
Syntax
object. AddReliefLayer( Map, GridFileName )
Parameter |
Type |
Default |
Description |
Map |
required; This specifies the MapFrame object to which the shaded relief map layer is added. |
||
GridFileName |
String |
required; This provides the path and file name of the grid file. |
Example 1
This example demonstrates how to create a contour map and coordinate system named MapFrame followed by its corresponding relief map named ContourLayer from the grid file named "demogrid.grd." It then creates a shaded relief map layer with AddReliefLayer in the MapFrame and names the layer ReliefLayer.
'declare MapFrame object and create a new contour map
Dim MapFrame As Object
Set MapFrame = Shapes.AddContourMap(GridFileName:=SurferApp.Path+"\Samples\demogrid.grd")
'declare ContourLayer object and set the reference to the contour layer
Dim ContourLayer As Object
Set ContourLayer = MapFrame.Overlays(1)
'declare ReliefLayer object and add a shaded relief layer to the map
Dim ReliefLayer As Object
Set ReliefLayer = Shapes.AddReliefLayer(Map:=MapFrame,_
GridFileName:=SurferApp.Path+"\Samples\demogrid.grd")
Example 2
This script displays all the methods and properties in the Shapes collection.
Used by: Shapes collection