How to get event trigger when hovering away from a map marker

Hello,

I'm using the maps and plotting a few simple markers.

I would like to trigger an event in two cases:

(a) when the user hovers over a marker
(b) when the user hovers away from the marker

I found the event "TooltipRendering", which works well in the case of (a).

But I cannot find a suitable event for (b).

I tried using "OnMarkerMouseMove", however this event doesn't seem to have any way to differentiate between (a) or (b), it just triggers at any mouse movement while hovering over the marker.


Ideally what I need is an event like "ToolTipClosed"

Does anyone have any ideas?


Thank you,

Sorin


5 Replies

SB Swetha Babu Syncfusion Team June 23, 2021 01:05 PM UTC

Hi Sorin, 
  
Thank you for contacting Syncfusion support. 
  
We have events such as “OnMarkerMouseMove” and “TooltipRendering” which will trigger when mouse hover is performed on the marker but we do not have event support when the mouse moves away from the marker. However, we will analyze the feasibility for the event support and update you with further details on June 25, 2021. 
  
Regards, 
Swetha Babu 



SB Swetha Babu Syncfusion Team June 24, 2021 12:57 PM UTC

Hi Sorin, 
 
Thank you for your patience. 
 
We have analyzed the feasibility of the reported scenario. We have considered the reported scenario as an improvement and logged a request for the same. However, we will include the implementation in our weekly patch release which is scheduled at the mid of July, 2021. Please find the below feedback link to keep track of the implementation. 
 
 
Please let us know if you need further assistance. 
 
Regards, 
Swetha Babu.


SO Sorin June 24, 2021 09:06 PM UTC

Hi Swetha,


Thank you for you quick response!

I really appreciate Syncfusion's willingness to add support for this even trigger, it would be really helpful.

I look forward to the patch release in July.


Thanks,

Sorin



SB Swetha Babu Syncfusion Team June 25, 2021 07:43 AM UTC

Hi Sorin, 
 
Thank you for your update. 
 
We will let you know once the event support is available in our weekly patch release. 
 
Please let us know if you need further assistance. 
 
Regards, 
Swetha Babu.


IR Indumathi Ravi Syncfusion Team July 14, 2021 04:10 PM UTC

Hi Sorin, 
  
Thank you for your patience. 
  
We have created the event "OnMarkerMouseLeave" to notify the mouse leave event from the marker in the Maps component. We have included this fix in our weekly patch release (v19.2.47). Please update the "Syncfusion.Blazor.Maps" package to resolve the reported issue. Please find the link to the package below. 
  
  
For your convenience, please see the code snippet below for firing the "OnMarkerMouseLeave" event in Maps. 
  
Code Snippet
<SfMaps> 
     <MapsEvents OnMarkerMouseLeave="MouseLeave"></MapsEvents> 
     …….. 
</SfMaps> 
  
@code{     
    public void MouseLeave() 
    { 
        Console.WriteLine("Marker mouse leave event is triggered."); 
    } 
  
Please let us know if you need any further assistance. 
  
Regards, 
Indumathi R 


Loader.
Up arrow icon