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

Problem: Pushpin -> Polyline

This is a discussion on Problem: Pushpin -> Polyline within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello Everyone, i'm programming in VB6 and MP2002. I have a recordset with Pushpins. And now I want to make ...

  1. #1
    Michelin is offline Junior Member White Belt
    Join Date
    Feb 2004
    Posts
    2

    Problem: Pushpin -> Polyline

    Hello Everyone,

    i'm programming in VB6 and MP2002. I have a recordset with Pushpins. And now I want to make a Polyline over these Pins.
    I found the "AddPolyline()". But can someone tell me the Code how to do this.

    Sorry, my english is bad, I know.

    But i need HELP,

    Michelin

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    There is a sample in the Help File... (below)

    objLoc is defined as an array of Locations, you would get the locations of your Pushpins into the array.


    Sub AddPolylineToMap()

    Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objLoc(1 To 3) As MapPoint.Location

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

    'Get three locations and zoom in
    Set objLoc(1) = objMap.FindResults("Seattle, WA").Item(1)
    Set objLoc(2) = objMap.FindResults("Redmond, WA").Item(1)
    Set objLoc(3) = objMap.FindResults("Tacoma, WA").Item(1)
    Set objMap.Location = objLoc(1)

    'Create a polyline by connecting these locations
    objMap.Shapes.AddPolyline objLoc

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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MAPPOINT - Problem : Pushpin is NOT displayed
    By Transit in forum MapPoint Desktop Discussion
    Replies: 8
    Last Post: 01-15-2008, 02:07 PM
  2. Drawing a polyline with Visual Basic Net - Array problem
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-24-2005, 05:16 PM
  3. Polyline Size
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 09-29-2004, 07:08 AM
  4. Showing a pushpin on top of a shape (polyline)
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 02-19-2004, 05:24 AM
  5. Bug on Polyline and line
    By Maverick in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-28-2003, 07:10 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 59 60 61 62 63 64 65 66