View Single Post

  #2 (permalink)  
Old 05-26-2004
Eric Frost's Avatar
Eric Frost Eric Frost is offline
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,530
Blog Entries: 1
Here's the sample code for DisplayDataMap in the Help file.. this is a very versatile method, there's a lot in the documentation.

Code:
  Sub CreateShadedAreaMapUsingMapPointDemographics()
    Dim objApp As New MapPoint.Application
    Dim objDataSet As MapPoint.DataSet
    Dim objDataMap As MapPoint.DataMap
    Dim objField As MapPoint.Field

    'Set up application and objects to use
    objApp.Visible = True
    objApp.UserControl = True
    Set objDataSet = objApp.ActiveMap.DataSets.GetDemographics()
    Set objField = objDataSet.Fields("Households (1980)")

    'Create the data map, and give it a name
    Set objDataMap = _
      objDataSet.DisplayDataMap(geoDataMapTypeShadedArea, _
      objField, geoShowByRegion1, geoCombineByDefault, _
      geoRangeTypeDiscreteEqualRanges, geoRangeOrderDefault, 15)
    objDataMap.LegendTitle = "State Households"
  End Sub
Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Reply With Quote