DataMap property
Returns the DataMap object if a data set has a data map created for it. Returns "Nothing"
for DataSet objects with a DataMapType property of geoDataMapTypeTerritory. Read-only.
Applies to
Objects: DataSet
Syntax
object.DataMap
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a DataSet object. |
Remarks
To create a data map, use the DisplayDataMap method on the DataSet object.
Example
Sub CreateDataMapWithWizard()
Dim objApp As New MapPoint.Application
Dim objDataSet As MapPoint.DataSet
Dim objDataMap As MapPoint.DataMap
'Set up application and objects to use
objApp.Visible = True
objApp.UserControl = True
Set objDataSet = objApp.ActiveMap.DataSets.GetDemographics(geoCountryUnitedStates)
objDataSet.DisplayDataMap ' necessary to allow editing in the next line
objApp.ActiveMap.DataSets.ShowDataMappingWizard _
DataSetToUse:=objDataSet
'Get the new data map
Set objDataMap = objDataSet.DataMap
'Set the title
objDataMap.LegendTitle = "User-created data map"
End Sub
Note This sample code contains data that is specific for use in MapPoint North America; it is for illustration purposes only.