MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




[C#] MappointControl - Pushpin symbol

This is a discussion on [C#] MappointControl - Pushpin symbol within the MapPoint 2006/2009 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. ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 11-22-2005
Junior Member
Yellow Belt
 
Join Date: Jan 2003
Posts: 17
Send a message via ICQ to 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
Hope this helps.

Brian McGrath
CAD North Inc.

http://www.cadnorth.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 11-22-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

Check messages off yesterday or day before to add cstom bitmaps. I have no mappoint on this machine...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 11-23-2005
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 11-23-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
mappointcontrol, pushpin, symbol


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Return Pushpin Symbol Anonymous MapPoint 2006/2009 Discussion 1 04-27-2005 03:12 PM
Adding custom pushpin symbol M.Vrolijk MapPoint 2006/2009 Discussion 2 09-20-2004 07:55 AM
MappointControl and Pushpin Anonymous MapPoint 2006/2009 Discussion 4 07-06-2004 09:11 AM
set pushpin symbol starbuck MapPoint 2006/2009 Discussion 3 10-19-2003 04:27 PM
Is there a way to use a different pushpin symbol w.... Anonymous MapPoint 2006/2009 Discussion 1 08-01-2001 08:59 AM


All times are GMT -5. The time now is 09:37 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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