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 2 of 2

Inserting Arrows

This is a discussion on Inserting Arrows within the MapPoint Desktop Discussion forums, part of the Map Forums category; I want Mappoint to insert arrows between different points on the map. If I have the lat/long of each point, ...

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

    Inserting Arrows

    I want Mappoint to insert arrows between different points on the map. If I have the lat/long of each point, can I write a program to make Mappoint draw these arrows in automatically? I'm trying to avoid drawing 376 arrows by hand. Thanks

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Vanja,

    Here is a code sample to get you started. This example assumes VB6 using the ActiveX Control.

    Code:
    Dim objmap As MapPointCtl.Map
    Set objmap = MappointControl1.ActiveMap
    Dim objLoc1 As MapPointCtl.Location
    Dim objLoc2 As MapPointCtl.Location
    Dim objShape As MapPointCtl.Shape
    
    Set objLoc1 = objmap.GetLocation(37.78, -122.42)
    Set objLoc2 = objmap.GetLocation(38.9, -77.02)
    Set objmap.Location = objLoc1
    
      'Add a Line from one location to the other
    Set objShape = objmap.Shapes.AddLine(objLoc1, objLoc2)
    objShape.Line.BeginArrowhead = True
    objShape.Line.EndArrowhead = True
     'Ensure Visible
    objmap.Union(Array(objLoc1, objLoc2)).GoTo

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. arrows disappear after zoom out
    By Gerhard Faber in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-27-2006, 03:00 AM
  2. Flows in mappoint 02 or 04 (arrows depending on the size of
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-19-2003, 01:51 PM
  3. joining recordsets with arrows (II)
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-28-2003, 06:37 AM
  4. joining recordsets with arrows
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-22-2003, 07:54 AM
  5. Need help with map scrolling arrows please!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-09-2003, 10:29 AM

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