The PinMap object contains the properties and methods of a pin map. Pin maps are created with the CreatePinMap method.
Derived from: Map object (All methods and properties of Map apply to this object.)
Properties
Methods
Example
This example creates a pin map of various US cities.
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
'Create a new map window
Set Plot = mvapp.Documents.Add(mvDocPlot)
'Declare PinMap as object
Dim PinMap As Object
'Create a Pin Map
Set PinMap = Plot.CreatePinMap( DataFileName:=mvapp.ApplicationFolder _
+ " Samples\Pin.dat", LocatingMethod:= mvPinLocCoordinates, PIDCol:=1, _
XCol:=3, YCol:=4, LabCol:=2)
End Sub