The Map object contains the properties and methods universal to all MapViewer maps.
Properties
Methods
Example
This example creates a map object consisting of a density map of Texas.
Sub Main
'Creates an instance of the MapViewer Application
'object and assigns it to the variable named "mvapp"
Set mvapp = CreateObject("MapViewer.Application")
'Make MapViewer visible
mvapp.Visible = True
'Declare Plot as Object
Dim Plot As Object
'Creates a new map window
Set Plot = mvapp.Documents.Add(mvDocPlot)
'Declare Map as object
Dim Map As Object
'Create a density map and assign it to the
'variable named "Map"
Set Map= Plot.CreateDensityMap(BoundaryFileName:= _
mvapp.ApplicationFolder + "\Samples\tx2010.gsb", DataFileName:= _
mvapp.ApplicationFolder + "\Samples\tx2010.dat", _
BoundaryFileOptions:="AreasToCurves=0", PIDCol:=1, VarCol:=3)
End Sub