The HatchMap object contains the properties of a hatch map. Hatch maps are created with the CreateHatchMap method of the PlotDocument object.
Derived from: Map object (All methods and properties of Map apply to this object.)
Properties
Methods
Example
This example creates a hatch map of Colorado.
Sub main
'Creates an instance of the MapViewer Application
'object and assigns it to the variable named "mvApp"
Set mvApp = CreateObject("MapViewer.Application")
'Makes the application main window visible
mvApp.Visible = True
'Assigns the location of the samples folder
'to the variable "InPath"
InPath$ = mvApp.ApplicationFolder + "samples\"
'Creates a map document object, and assigns it
'to the variable named "Plot"
Set Plot = mvApp.Documents.Add(DocType:=mvDocPlot)
'Creates a hatch map object and assigns it to the
'variable named "HatchMap"
Set HatchMap = Plot.CreateHatchMap( BoundaryFileName:=InPath$ + _
"co2010.gsb", DataFileName:=InPath$ + "co2010.dat", PIDCol:=1, _
VarCol:=5, NumClasses:=4)
End sub