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

How does one get the activeX mappoint control to d....

This is a discussion on How does one get the activeX mappoint control to d.... within the MapPoint Desktop Discussion forums, part of the Map Forums category; How does one get the activeX mappoint control to draw a line between pushpins which represent gps lat/lon points as ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    How does one get the activeX mappoint control to draw a line between pushpins which represent gps lat/lon points as a vehicle moves on the map?

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    You would use the AddLine method. This is a code snippet from the
    developer's reference in MapPoint Help (it can also be found on MSDN
    Library on the web):

    <form><textarea wrap="off" readonly="true" name="code" style="BORDER-BOTTOM: gray 1px inset; BORDER-LEFT: gray 1px inset; BORDER-RIGHT: gray 1px inset; BORDER-TOP: gray 1px inset; OVERFLOW: auto; WIDTH: 100%" rows="12" cols="40"> Sub AddLineToMap()

    Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objLoc1 As MapPoint.Location
    Dim objLoc2 As MapPoint.Location

    'Set up the application
    Set objMap = objApp.ActiveMap
    objApp.Visible = True
    objApp.UserControl = True

    'Get two locations and zoom to it
    Set objLoc1 = objMap.FindResults("Seattle, WA").Item(1)
    Set objLoc2 = objMap.FindResults("Redmond, WA").Item(1)
    Set objMap.Location = objLoc1

    'Add a Line from one location to the other
    objMap.Shapes.AddLine objLoc1, objLoc2

    End Sub </textarea></form>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Integratin MapPoint ActiveX control into VC++ 6.0
    By geouser in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 06-13-2006, 03:11 PM
  2. Re: Keyboard control in mappoint activex control
    By djcapslock in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2005, 10:16 AM
  3. mappoint ActiveX control 9.0
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-21-2004, 06:22 AM
  4. I am using Mappoint 2002 ActiveX control in a VB a....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-14-2002, 07:10 AM
  5. I am using the MapPoint ActiveX control in a VB Ap....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-24-2001, 06:35 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58