Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Help! Import Custom Symbol Array

This is a discussion on Help! Import Custom Symbol Array within the MapPoint Desktop Discussion forums, part of the Map Forums category; I am new to Mappoint 2004 and I am trying to map values using the DisplayDataMap method. I am using ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Help! Import Custom Symbol Array

    I am new to Mappoint 2004 and I am trying to map values using the DisplayDataMap method. I am using the Active X Control and VBA from within Excel 2003. Here is the code I am running:

    Set objDataMap = objDataSet.DisplayDataMap(geoDataMapTypeMultipleSy mbol, objField, geoShowByStreetAddress, geoCombineByDefault, geoRangeTypeUniqueValues, geoRangeOrderDefault, , UBound(lRangeValues) + 1, lRangeValues, zRangeNames, , lSymbols)

    This maps the data from an Excel spreadsheet on a multiple symbol map and everything is fine; however, I then want to map a subset of this data so I do the following:

    tValues(0) = lRangeValues(arrayx)
    tNames(0) = zRangeNames(arrayx)
    tSymbols(0) = "c:\red.bmp"
    Set objDataMap = objDataSet.DisplayDataMap(geoDataMapTypeMultipleSy mbol, objField, geoShowByStreetAddress, geoCombineByDefault, geoRangeTypeUniqueValues, geoRangeOrderDefault, , UBound(tValues) + 1, tValues, tNames, , tSymbols)

    In the above example arrayx refers a single subset of the dataset used before. This does what I want except for the custom symbol array. The data maps but uses the default symbol (black circle) for the data set.

    I have tried changing both the datasets and individual pushpin symbols but I get a runtime error 4010: saying that I can't access that property.
    I am really getting frustrated and any help would be appreciated.

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Custom Symbol Array

    Never mind, I figured it out. Thanks.

  3. #3
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    What was wrong? other people may have the same or similar problem.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  4. #4
    krishvgopal is offline Junior Member White Belt
    Join Date
    Aug 2008
    Posts
    3

    Smile Re: Help! Import Custom Symbol Array

    Quote Originally Posted by Eric Frost View Post
    What was wrong? other people may have the same or similar problem.

    Eric
    I faced a similar situation and was about to give up and finally figured out it was a very simple solution to the problem.

    You will have to first create the Symbol Object and the assign the Sybmol.ID in place of the file name

    tSymbols(0) = "c:\red.bmp"
    >>
    actually should be
    tSymbols(0) = oSymbol.ID

    Hope it helps someone in a similar situation

    Cheers

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Optimize Custom Symbol Map Rendering Performance
    By gkirbo in forum MapPoint Desktop Discussion
    Replies: 21
    Last Post: 05-09-2006, 07:21 PM
  2. custom symbol sets - newbie help
    By Suzgreive in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-30-2004, 12:49 PM
  3. Adding custom pushpin symbol
    By M.Vrolijk in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-20-2004, 07:55 AM
  4. Import custom data from all formats
    By Anonymous in forum Wish List
    Replies: 0
    Last Post: 10-23-2002, 12:54 PM
  5. programmatically load a custom symbol
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-22-2002, 05:02 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25