The TerritoryMap object contains the properties of a territory map. Territory maps are created with the CreateTerritoryMap method.
Derived from: Map object (All methods and properties of Map apply to this object.)
Properties
Methods
OutputTerritoryInfoToWorksheet
SelectAllObjsInActiveTerritory
Example
'Create an instance of the MapViewer Application Object and assign it to the variable named "mvApp"
Set mvApp = CreateObject("MapViewer.Application")
'Make the application main window visible
mvApp.Visible = True
'Create a new plot document and assign it to the variable "Plot"
Set Plot = mvApp.Documents.Add(DocType:=mvDocPlot)
'CreateTerritoryMap
'Create an array for the columns to see statistics for in the territory map
Dim variableColumns(1) As Long
variableColumns(0) = 8 : variableColumns(1) = 9
'Create a territory map and assign it to the variable "TerritoryMap"
Set TerritoryMap = Plot.CreateTerritoryMap(BoundaryFileName:=mvApp.ModuleFolder + "\Samples\CO2010.gsb", _
DataFileName:=mvApp.ModuleFolder + "\Samples\CO2010.dat", _
PIDCol:=1, pVarCols:=variableColumns())