MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Pushpin State

This is a discussion on Pushpin State within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, How do I loop through pushpins objects to hide any pushpin who’s ballonstate is set show to MapPoint.GeoBalloonState.geoDisplayNone . ...


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 (6) Thread Tools Display Modes
  6 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-31-2007
Member
Yellow Belt
 
Join Date: May 2007
Posts: 31
Pushpin State

Hi,

How do I loop through pushpins objects to hide any pushpin who’s ballonstate is set show to MapPoint.GeoBalloonState.geoDisplayNone .

Regards,
Joe
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-01-2007
Junior Member
White Belt
 
Join Date: Sep 2007
Posts: 3
Re: Pushpin State

What I did was load a custom symbol that was completely transparent. Then change the symbolid to the new one.

Only problem is custom symbols are very slow
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-02-2007
Junior Member
White Belt
 
Join Date: Dec 2006
Posts: 3
Re: Pushpin State

Hey Joe,

Here's some Excel VBA to do this

Sub HidePins()
' Attach to already-running instance of MapPoint
Set objMpApp = GetObject(, "MapPoint.Application")
Set ObjMap = objMpApp.ActiveMap

'set this to the name of your pushpins
Set objDataset = ObjMap.DataSets("My Pushpins")
Set objRecordset = objDataset.QueryAllRecords

'hide screen while updating, it's much faster that way
objMpApp.Visible = False

With objRecordset
'move to the first pushpin and then loop through them all
.MoveFirst
Do Until .EOF
With .Pushpin
'.BalloonState = geoDisplayBalloon
'.BalloonState = geoDisplayName
.BalloonState = geoDisplayNone
End With
.MoveNext
Loop
End With

'show the map now
objMpApp.Visible = True

end sub
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-02-2007
Member
Yellow Belt
 
Join Date: May 2007
Posts: 31
Re: Pushpin State

Hi Whitson

Thanks for the reply, I was able to adapt your code to my requirements, Thank you.

Regards
Joe
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, state


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/pushpin-state-6667.html

Posted By For Type Date
The Magazine for MapPoint - MP2K Magazine This thread Refback 11-07-2007 11:12 AM
Apple Blog » Blog Archive » Pushpin State This thread Pingback 11-05-2007 05:57 PM
Create 3D Map Video - Win a Free Zune from Microsoft - MapPoint News - MP2K Magazine This thread Refback 11-05-2007 07:48 AM
Merging Multiple Routes - MapPoint Articles - MP2K Magazine This thread Refback 11-04-2007 05:16 PM
Determing Whether A Point Is Located Inside Polygon - MapPoint Articles - MP2K Magazine This thread Refback 11-02-2007 08:42 AM
Programming MapPoint via .NET - MapPoint Articles - MP2K Magazine This thread Refback 11-02-2007 08:37 AM

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
Open map in pan state mtcook01 MapPoint 2006/2009 Discussion 2 05-13-2007 03:04 AM
country or state? Rick MapPoint Web Service and Virtual Earth 0 04-21-2006 03:59 PM
Turning on all pushpin Balloon sTate Anonymous Products: Pushpin Tool, Single State Mapper 1 02-18-2004 12:24 PM
State Sums Anonymous MapPoint 2006/2009 Discussion 3 08-08-2002 10:19 PM
I need to a map showing only my state with the nam.... Anonymous MapPoint 2006/2009 Discussion 1 08-04-2002 02:09 PM


All times are GMT -5. The time now is 11:34 PM.


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