| | lovetann 03-12-2008, 04:55 AM 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? Mattys Consulting 03-12-2008, 08:56 AM 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 lovetann 03-12-2008, 09:23 AM Same problem nomatter how much I zoom... Mattys Consulting 03-12-2008, 09:34 AM lovetann,
Send your file to me, I have to see this.
http://www.mattysconsulting.com/contact.htm
Mike Mattys Winwaed 03-12-2008, 09:35 AM 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 Mattys Consulting 03-12-2008, 09:44 AM Doh!:smilielol5:
Mike Winwaed 03-12-2008, 10:10 AM 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 lovetann 03-13-2008, 09:02 AM 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. Wilfried 03-13-2008, 12:01 PM Hi,
can you upload a screenshot so that we exactly can see what the problem is ? lovetann 03-13-2008, 05:54 PM 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. lovetann 03-25-2008, 04:46 AM I attach two screen dumps, "without lines" and "with lines". Here you can see the menu I get and how the pushpins look when I right click. Mattys Consulting 03-25-2008, 12:05 PM lovetann,
:grin2:
You can temporarily drag the line away and undo when finished viewing info?
Mike Mattys lovetann 03-26-2008, 04:51 AM I'm affraid that is not a solution my customer would approve of.
Ideally I would like the information to appear when I place the cursor over the pushpin, without having to click at all. Is that possible...? Mattys Consulting 03-26-2008, 08:29 AM Sure. If you track MouseMove, when you get near a pin you'll
show the balloon - at or below a certain altitude perhaps ...
Mike Mattys | |