ThinkGeo.com    |     Documentation    |     Premium Support

MouseHover not firing in MapView

In our current application, using TG 10, we have implemented Map Tips. This is simply a tooltip that pops up and displays some data based on the feature that the mouse is hovering over. Now, when upgrading to TG 14 it appears that the MouseHover event and protected sub (OnMouseHover) are no longer working. What can I do to make this work?

Thanks!

Steve

Hi Steve,

The new WinForms V10 is using WPF internally, which doesn’t have MouseHover, instead it uses MouseEnter, MouseLeave and MouseMove. You can hook up those events:

mapView.ExtentOverlay.MapMouseEnter
mapView.ExtentOverlay.MapMouseMove
mapView.ExtentOverlay.MapMouseLeave 

to implement the previous MouseHover

Thanks,
Ben