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

Displaying a WayPoint without showing the default square

This is a discussion on Displaying a WayPoint without showing the default square within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, Is there a way to override the image MapPoint (ActiveX) assigns to a WayPoint? I get the start of ...

  1. #1
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128

    Displaying a WayPoint without showing the default square

    Hi,

    Is there a way to override the image MapPoint (ActiveX) assigns to a WayPoint? I get the start of the route assigned the number "1" in a box, and each subsequent WayPoint on the route is given a number inside a box. Is there a way around this? Can I change the image or suppress the box entirely?

    Thanks for the help. I hope it's possible. This yellow square has been bugging me since I started using MapPoint.

    Thanks,
    Bob

  2. #2
    JacquesLebrun is offline Junior Member White Belt
    Join Date
    Apr 2006
    Posts
    1
    To display your waypoint, I assume you actually insert a pushpin?
    You may change the default pushpin symbol:

    Code:
    Set ObjPin = ObjMap.AddPushpin(ObjLoc, "123")
    ObjPin.symbol = 62
    You may also design you own symbols in a bitmap that would include your number and then insert this bitmap instead of the pushpin:

    Code:
    Set ObjPin = ObjMap.AddPushpin(ObjLoc, "123")
    Set ObjSym = ObjMap.Symbols.Add("marker123.bmp")
    ObjPin.Symbol = ObjSym.ID
    Set ObjSym = Nothing
    Of course, your program could load an empty marker in a picture, overlay the number "123", save the image as "marker123.bmp", so you could dynamically show a marker with any number without having to manually define thousands of bitmaps.

  3. #3
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128

    can't seem to stop the default behavior, have better idea.

    I tried your code, but find that MapPoint automatically places a square on every waypoint, regardless of the pushpin associated with the location. And this exactly matches the way the MapPoint program treats waypoints of a route I create with it. So I am abandoning this method in favor of one which has more promise.

    I now think my best bet is to add the waypoints to the route, calculate the route, store the invidiual legs of the journey, then delete the route. If I then add each leg of the journey myself, and add pushpins where the waypoints were, I can rebuild the image I desire.

    Is it difficult to load the individual legs into an array, then create my own route?

    Thanks for any suggestions. I've been hoping for a long time to have more control over drawing the route, anyway.

    Thanks,
    Bob

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Strange behaviour with square brackets.
    By fergdeff in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-07-2006, 04:27 AM
  2. How to get the Locations for the 4 vertices of a Square?
    By cx123 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-26-2004, 11:01 AM
  3. Default Value in Find
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-01-2004, 01:25 PM
  4. address from waypoint
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 11-18-2003, 09:04 AM
  5. Put a waypoint!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-14-2003, 10:44 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