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

using routes and highlighting route

This is a discussion on using routes and highlighting route within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi im using route instead of views to get a map, i get a map for the address given by ...

  1. #1
    unni is offline Junior Member White Belt
    Join Date
    Jul 2005
    Posts
    1

    using routes and highlighting route

    Hi im using route instead of views to get a map, i get a map for the address given by the user,what i want is to highlight the place given by the user,so what should i do to find the exact location of the address and highlight it please help me

  2. #2
    calv1ns's Avatar
    calv1ns is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    91

    FindResults

    Unni

    This will do most of what you want:

    Uses 555 Burrady Street, Vancouver, BC, Canada as the example.

    <pre>
    Sub AddPPAtAddr()
    Dim oMap As MapPoint.Map
    Dim this_addr As MapPoint.FindResults
    Dim this_pp As MapPoint.Pushpin

    Set oMap = GetObject(, "MapPoint.Application").ActiveMap

    Set this_addr = oMap.FindAddressResults("555 Burrard", _
    "Vancouver", , "BC", , geoCountryCanada)

    Set this_pp = oMap.addpushpin(this_addr.item(1).Location, "Your PushPin")
    this_pp.Highlight = True

    ' Optional set the ballon on and zoom the map to centre based on your new Pushpin
    this_pp.BalloonState = geoDisplayBalloon
    oMap.DataSets.ZoomTo


    End Sub
    </pre>

    If you want a commercial solution drop me a note.
    Calv1ns

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. More routes in the same map
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-09-2005, 10:09 AM
  2. Shading/Highlighting
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-25-2003, 02:36 PM
  3. How do I calculate a route distance without displaying route
    By spideybud in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 09-09-2003, 11:14 AM
  4. Routes
    By Anonymous in forum Wish List
    Replies: 1
    Last Post: 09-03-2002, 11:24 PM
  5. I need to add bus routes to a map. What are my bes....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-26-2001, 10:41 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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96