Agm-Direction
Agm-Direction copied to clipboard
Add a listeners for the mouseover and mouseout event on the direction
I need to show InfoWindow when mouseover on the direction and close the InfoWindow when mouseout.
How can I achieve this?
Now only ClickEvent can open the InfoWindow.
This is a good feature.
Hi!
Maybe we can add an option called listeners in the actual markerOptions. Something like this:
<agm-direction
[markerOptions]="{
origin: {
listeners: {
mouseover: [openInfoWindow]
mouseout: [closeInfoWindow]
}
},
destination: ...same here...
}">
Or maybe add another input called markerListeners and do something similar to above:
<agm-direction
[markerListeners]="{
origin: {
mouseover: [openInfoWindow]
mouseout: [closeInfoWindow]
},
destination: ...same here...
}">
And in conjunction with the sendInfoWindow output this can be done.
I can make a PR if needed