MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




set pushpin symbol

This is a discussion on set pushpin symbol within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; HI Using VB6 and MAP OCX methods When the map is refreshed we re-draw the pushpins with code below - ...


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

Today's Posts Twitter Feed 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 10-18-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
set pushpin symbol

HI
Using VB6 and MAP OCX methods

When the map is refreshed we re-draw the pushpins with code below -

Dim objLoc As MapPoint.Location

Set objLoc = mc1.ActiveMap.GetLocation(tb!MapLat, tb!maplon)
mc1.ActiveMap.AddPushpin(objLoc, jobText).BalloonState = geoDisplayBalloon

mc1 is the ocx
My question is how can we set the symbol of each pin depending on the record status that is being read?


Thanks in advance
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 10-19-2003
Junior Member
White Belt
 
Join Date: Jan 2003
Posts: 8
Symbol

Dim mySymbols As MapPoint.Symbols
Dim mySym As MapPoint.Symbol

Set mySymbols = myApp.ActiveMap.Symbols

'Import a custom symbol
Set mySym = mySymbols.Add("MyBitmap.bmp")

'Set the symbol of the pushpin
myPushpin.Symbol = mySym.ID

You can also use one of the 255 predefined symbols in MapPoint (see helpfile).

Greetings, Jack.
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 10-19-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
pushpins

Hi Jack
Thanks for reply, followed it until -

'Set the symbol of the pushpin
myPushpin.Symbol = mySym.ID

The ocx on the form is called mc1 and I can see no way of setting mySym.ID. Any ideas.

Thanks
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 10-19-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
got it

Got it
Thanks
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
pushpin, set, 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
[C#] MappointControl - Pushpin symbol suamikim MapPoint 2006/2009 Discussion 4 11-23-2005 02:02 AM
Return Pushpin Symbol Anonymous MapPoint 2006/2009 Discussion 1 04-27-2005 02:12 PM
Adding custom pushpin symbol M.Vrolijk MapPoint 2006/2009 Discussion 2 09-20-2004 06:55 AM
Cannot see the Symbol ID from the Pushpin object after searc fedir MapPoint 2006/2009 Discussion 0 11-25-2003 07:06 PM
Is there a way to use a different pushpin symbol w.... Anonymous MapPoint 2006/2009 Discussion 1 08-01-2001 07:59 AM


All times are GMT -5. The time now is 07:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Dalaman Holiday
Enjoy a wonderfully peaceful Dalaman holiday... Book through UlookUbook and save!



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