MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to display balloon when pushpins have line between them?

This is a discussion on How to display balloon when pushpins have line between them? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have programatically added pushpins to my map, and then I have an option to draw lines between the pushpins ...


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 (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-12-2008
Junior Member
White Belt
 
Join Date: Feb 2008
Posts: 9
How to display balloon when pushpins have line between them?

I have programatically added pushpins to my map, and then I have an option to draw lines between the pushpins (map.shapes.AddPolyLine).

If I rightclick on the pushpin I get a menu where I can choose "Show information", and the balloon with the info appears.

After I've added the line I don't get the same menu when I rightclick, but another one with no "Show info"-option. Also, the pushpins get black squares on them (points of interest?).

I would like to be able to see the information even though there is a line between the pushpins,- is there a way?
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 03-12-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 248
Re: How to display balloon when pushpins have line between them?

Hi lovetann,

Your question is of the 'have to see it' variety, I think.
It sounds like you simply need to zoom in further,
but if that's not the answer then I offer to have a
look at your map.

Mike Mattys
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 03-12-2008
Junior Member
White Belt
 
Join Date: Feb 2008
Posts: 9
Re: How to display balloon when pushpins have line between them?

Same problem nomatter how much I zoom...
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 03-12-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 248
Re: How to display balloon when pushpins have line between them?

lovetann,

Send your file to me, I have to see this.
http://www.mattysconsulting.com/contact.htm

Mike Mattys
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 03-12-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
Re: How to display balloon when pushpins have line between them?

You need to use the "ZOrder" property to bring the pushpin to the front (or the shape to the back).
ZOrder sets which shapes are above which shapes.
So if your line shape is oShp, the following VB6/VBA code will push it back (behind the pushpins):

oShp.ZOrder geoSendToBack


The black squares are vertices on your polyline. So a 1-segment straight line will have two vertices - one for each end.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 03-12-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 248
Re: How to display balloon when pushpins have line between them?

Doh!

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
  #7 (permalink)  
Old 03-12-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
Re: How to display balloon when pushpins have line between them?

Yes, I saw this very problem a few years back with a custom programming project. There's a definite trade-off in visibility (and 'selectability') of lines and pushpins when drawing connecting lines like this.


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 03-13-2008
Junior Member
White Belt
 
Join Date: Feb 2008
Posts: 9
Re: How to display balloon when pushpins have line between them?

I'm sorry, but it didn't help.

After I've added the pushpins and placed their locations in an array I do the following:

Shape line = map.Shapes.AddPolyline( locations );
line.Name = name;
int red = System.Drawing.ColorTranslator.ToOle( System.Drawing.Color.Red );
line.Line.ForeColor = red;
line.Line.Weight = 2;
line.ZOrder(
GeoZOrderCmd.geoSendToBack );

I appreciate your help, and would be grateful for any other ideas.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 03-13-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: How to display balloon when pushpins have line between them?

Hi,

can you upload a screenshot so that we exactly can see what the problem is ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 03-13-2008
Junior Member
White Belt
 
Join Date: Feb 2008
Posts: 9
Re: How to display balloon when pushpins have line between them?

Quote:
Originally Posted by Wilfried View Post
Hi,

can you upload a screenshot so that we exactly can see what the problem is ?
I'm now away on Easter holiday, so I'll do so when I return on March 25th.
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
balloon, display, line, pushpins


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/how-display-balloon-when-pushpins-have-line-between-them-7280.html

Posted By For Type Date
How to display balloon when pushpins have line between them? - MapPoint Forums This thread Refback 03-23-2008 12:51 PM
Calling MapPoint From C++ Without the MFC Safety Net - MapPoint Articles - MP2K Magazine This thread Refback 03-12-2008 07:22 PM

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
Is it possible to display more than 100 Pushpins? ddd MapPoint Web Service and Virtual Earth 3 11-07-2006 04:59 PM
Display pushpins using Eastings and Northings Landyd MapPoint 2006/2009 Discussion 2 05-24-2006 09:49 AM
how to display the names of multiple pushpins Anonymous MapPoint 2006/2009 Discussion 1 04-19-2005 01:32 PM
Balloon data display marcus smith MapPoint 2006/2009 Discussion 1 01-17-2003 08:08 PM
balloon display Anonymous MapPoint 2006/2009 Discussion 4 01-03-2003 04:15 PM


All times are GMT -5. The time now is 03:44 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