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

[C#] MappointControl - Pushpin symbol

This is a discussion on [C#] MappointControl - Pushpin symbol within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, i need to show some individual symbols for my pushpins, but i can't find exactly how to do it. ...

  1. #1
    suamikim is offline Junior Member White Belt
    Join Date
    Nov 2005
    Posts
    9

    [C#] MappointControl - Pushpin symbol

    Hi,

    i need to show some individual symbols for my pushpins, but i can't find exactly how to do it. I'm adding the pushpin this way:

    Code:
    MapPoint.Location loc = map.GetLocation(latitude, longitude, altitude);
    MapPoint.Pushpin pushpin = map.AddPushpin(loc, loc.Name);
    The problem is, that i've seen the pushpin.Symbol-Member, but i don't know how to set a custon bitmap or jpg to it, cause it's a short-Value.

    Is it somehow possible to use these Standard-Icons from MapPoint:
    http://msdn.microsoft.com/library/de...ablesIcons.asp

    Thanks, greets

    mike

  2. #2
    brianmcg is offline Junior Member Yellow Belt
    Join Date
    Jan 2003
    Posts
    17
    Hi Mike,

    While I'm not sure about C#, you can do it in VB by updating the Symbol property of the pushpin object you create in the AddPushPin method. I would expect that it would be similar in C#.

    Code:
    Dim oLoc As MapPointCtl.Location
    Dim oPin As MapPointCtl.Pushpin
    
    Set oLoc = map.ActiveMap.GetLocation(Latitude, Longitude)
    Set oPin = map.ActiveMap.AddPushpin(oLoc, "Pin Name")
    oPin.Note = "Balloon Note goes here"
    oPin.BalloonState = geoDisplayName
    oPin.Symbol = 87                               '  Green Truck Symbol
    Hope this helps.

    Brian McGrath
    CAD North Inc.

    http://www.cadnorth.com

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Check messages off yesterday or day before to add cstom bitmaps. I have no mappoint on this machine...

  4. #4
    suamikim is offline Junior Member White Belt
    Join Date
    Nov 2005
    Posts
    9
    Quote Originally Posted by brianmcg
    Hi Mike,

    While I'm not sure about C#, you can do it in VB by updating the Symbol property of the pushpin object you create in the AddPushPin method. I would expect that it would be similar in C#.

    Code:
    Dim oLoc As MapPointCtl.Location
    Dim oPin As MapPointCtl.Pushpin
    
    Set oLoc = map.ActiveMap.GetLocation(Latitude, Longitude)
    Set oPin = map.ActiveMap.AddPushpin(oLoc, "Pin Name")
    oPin.Note = "Balloon Note goes here"
    oPin.BalloonState = geoDisplayName
    oPin.Symbol = 87                               '  Green Truck Symbol
    Ok, this helps, but how do you know witch symbol the nr. 87 is? On the page i've posted above the green truck is nr. 55?
    I would like to use the simple blue car or one with an arrow, how do i find out, witch nr they have without trial and error?

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Code:
    how do i find out, witch nr they have without trial and error?
    In the help of mappoint look at "symbol property". they are listed with number and symbol.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Return Pushpin Symbol
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-27-2005, 02:12 PM
  2. Adding custom pushpin symbol
    By M.Vrolijk in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-20-2004, 06:55 AM
  3. MappointControl and Pushpin
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 07-06-2004, 08:11 AM
  4. set pushpin symbol
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-19-2003, 03:27 PM
  5. Is there a way to use a different pushpin symbol w....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-01-2001, 07:59 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