Share via


DataMapType property

Returns the type of data mapping currently used for an imported or linked data set. Read-only GeoDataMapType.

GeoDataMapType

Value

Description

geoDataMapTypeCategoricalColumn

8

Column Chart Map

geoDataMapTypeDefault

–1

Not valid for use with the DataMapType property

geoDataMapTypeMultipleSymbol

5

Multiple Symbol Map

geoDataMapTypeNone

0

Not a data map

geoDataMapTypePushpin

4

Pushpin Map

geoDataMapTypeSeriesColumn

9

Series Column Chart Map

geoDataMapTypeShadedArea

1

Shaded Area Map

geoDataMapTypeShadedCircle

3

Shaded Circle Map

geoDataMapTypeSizedCircle

2

Sized Circle Map

geoDataMapTypeSizedPie

6

Sized Pie Chart Map

geoDataMapTypeTerritory

10

Territory Map

geoDataMapTypeUnsizedPie

7

Unsized Pie Chart Map

Applies to

Objects: DataSet

Syntax

object.DataMapType

Parameters

Part

Description

object

Required. An expression that returns a DataSet object.

Example

  Sub GetInfoAboutDataMap()
    Dim objApp As New mappoint.Application
    Dim objDataMap As mappoint.DataMap
    Dim objDataSet As mappoint.DataSet

    'Set up application and objects to use
    objApp.Visible = True
    objApp.UserControl = True

    'Let user create a data map
    Set objDataMap = objApp.ActiveMap.DataSets.ShowDataMappingWizard()

    'Get information about the data map type
    Set objDataSet = objDataMap.Parent
    Select Case objDataSet.DataMapType
      Case geoDataMapTypePushpin
        MsgBox "The map type is Pushpin."
      Case geoDataMapTypeShadedArea
        MsgBox "The map type is Shaded Area."
      Case geoDataMapTypeShadedCircle
        MsgBox "The map type is Shaded Circle."
      Case geoDataMapTypeSizedCircle
        MsgBox "The map type is Sized Circle."
      Case geoDataMapTypeCategoricalColumn
        MsgBox "The map type is Column Chart."
      Case geoDataMapTypeMultipleSymbol
        MsgBox "The map type is Multiple Symbol."
      Case geoDataMapTypeSeriesColumn
        MsgBox "The map type is Series Column Chart."
      Case geoDataMapTypeSizedPie
        MsgBox "The map type is Sized Pie Chart."
      Case geoDataMapTypeTerritory
        MsgBox "The map type is Territory."
      Case geoDataMapTypeUnsizedPie
        MsgBox "The map type is Pie Chart."
      Case geoDataMapTypeNone
        MsgBox "The data map was not created."
    End Select
  End Sub