MarkerTooltipMode.OnMouseOver not working in latest Forms in svn

May 22, 2009 at 3: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.

 

Coordinator
May 22, 2009 at 4: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 5: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! ;}";
               ground.Markers.Add(myCity);

Were you able to try it?

 

May 22, 2009 at 5: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?

 

Coordinator
May 22, 2009 at 5:50 AM

i repeat: please set your marker size and offset

May 22, 2009 at 5:56 AM

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

 

Jun 1, 2009 at 3:01 PM

Hi,

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">

GMapMarker

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

 

</font>

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

m.Size =

</font>

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.

Coordinator
Jun 1, 2009 at 4:51 PM

nothing wrong, use GMapNET.Size

Jun 1, 2009 at 6:16 PM

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

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

Coordinator
Jun 1, 2009 at 6:25 PM

just like demo markers, just create your own by example