MarkerTooltipMode.OnMouseOver not working in latest Forms in svn

May 22, 2009 at 4:33 AM

I just downloaded the latest svn code and in the Forms Demo, if you swap the TooltipMode.Always to TooltipMode.OnMouseOver, the tooltips never appear when you mouse over them.


May 22, 2009 at 5:28 AM

yes it IS working ;}

GMapMarkerRect mBorders = new GMapMarkerRect(MainMap.CurrentPosition);
mBorders.Size = new Size(100, 100);

if you use TooltipMode.OnMouseOver, please set your marker size and offset if you use your own custom marker ;} 

May 22, 2009 at 6:24 AM

It isn't for me ... it works in WPF but not in Forms ... and this is in the Demo which uses GMapMarkerGoogleGreen, not a custom marker.

               GMapMarker myCity = new GMapMarkerGoogleGreen(pos.Value);
               myCity.TooltipMode = MarkerTooltipMode.OnMouseOver;
               myCity.ToolTipText = "Welcome to Lithuania! ;}";

Were you able to try it?


May 22, 2009 at 6:48 AM

I've tested and I can see it works on GMapMarkerRect's, but not on GMapMarkerGoogleGreen's. I don't know why, because inside they are very similar and both inherit GMapMarker. Do you know why it's not working?


May 22, 2009 at 6:50 AM

i repeat: please set your marker size and offset

May 22, 2009 at 6:56 AM

Ok I realise now I must do GmapMarkerGoogleGreen.size = New Size(100,100) and it works. Thanks.


Jun 1, 2009 at 4:01 PM


I am trying to set the size of the GMapMarkerGoogleGreen so I can get the ToolTip to show up, but I keep getting an error on setting the Size:


<font size="2" color="#008080"><font size="2" color="#008080">


</font></font><font size="2" color="#008080">



m = new GMapMarkerGoogleGreen(targetPoint);<font size="2">

m.Size =


new Size(100,100);

I get the error:  Error 1 'Size' is an ambiguous reference between 'System.Drawing.Size' and 'GMapNET.Size' 

What am I doing wrong??  The sample with the tooltip on the Rectangle seems to work ok.

Jun 1, 2009 at 5:51 PM

nothing wrong, use GMapNET.Size

Jun 1, 2009 at 7:16 PM

Ahhh....I see.  Thanks!   I'm sort of new to this whole programming thing.

One more would I use a marker other than the ones provided through the code.  For example, the Google ones listed under your 'Map Icons' link??

Jun 1, 2009 at 7:25 PM

just like demo markers, just create your own by example