PostData Object

 

The PostData object contains the properties and methods of a post data map. Post data maps are created with the CreatePostMap method.

 

Properties

Application

Font

LabelFormat

Parent

PostPosOffsetType

PostPosXOffset

PostPosYOffset

PostType

VarCol

XCol

YCol

 

Example

This example creates a map of the United States and posts the state names.

 

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)

 

'Defines the variables for a post map

 Dim Variables(1 To 1) As Long

 Variables(1) = 2

 

'Creates a PostData object and assigns it

'to the variable named "PostMap"

 Set PostMap = Plot.CreatePostMap( Variables, BoundaryFileName:= _

 InPath + "us50alb.gsb", DataFileName:=InPath$ + "us502010.dat", _

 BoundaryFileOptions:= "SecondaryIDField=2, Attribute1Field=1", _

 PIDCol:=1 )

End Sub