AddImageMap
The AddImageMap method has been deprecated. Use the AddColorReliefMap method instead.
AddImageMap adds a new image map. Returns a MapFrame object.
Syntax
object.AddImageMap( GridFileName )
Parameter |
Type |
Required/ Optional |
Default |
Description |
GridFileName |
String |
Required |
This provides the path and file name of the grid file. |
Example 1
This example demonstrates how to create a map coordinate system named MapFrame followed by its corresponding image map named ImageLayer from the grid file named demogrid.grd.
Dim MapFrame As Object
Set MapFrame = Shapes.AddImageMap(GridFileName:=SurferApp.Path+"\Samples\demogrid.grd")
Dim ImageLayer As Object
Set ImageLayer = MapFrame.Overlays(1)
Example 2
This script displays all the methods and properties in the Shapes collection.
Used by: Shapes collection