DensityMap Object

 

The DensityMap object contains the properties of a density map. Density maps are created with the CreateDensityMap method.

 

Derived from: Map object (All methods and properties of Map apply to this object.)

 

Properties

DiffPos

DotSum

DotValue

GlobalData

MaxDot

Method

PIDCol

Symbol

UseAbsoluteValue

VarCol

 

Example 1

This example creates a density map of Texas.

 

Sub Main

'Declare the variable that will reference the application

 Dim mvapp As Object

 

'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 DensityMap as object

 Dim DensityMap As Object

 

'Create a density map

 Set DensityMap= Plot.CreateDensityMap(BoundaryFileName:= _

 mvapp.ApplicationFolder + "\Samples\tx2010.gsb", DataFileName:= _

 mvapp.ApplicationFolder + "\Samples\tx2010.dat", _

 BoundaryFileOptions:="AreasToCurves=0", PIDCol:=1, VarCol:=3)

End Sub

 

Example 2

This script displays all the properties in the DensityMap object.