Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a listeners for the mouseover and mouseout event on the direction #49

Open
tvbishan opened this issue Oct 11, 2018 · 2 comments
Open
Labels
enhancement Indicates new feature requests help wanted Indicates that a maintainer wants help on an issue or pull request

Comments

@tvbishan
Copy link

I need to show InfoWindow when mouseover on the direction and close the InfoWindow when mouseout.

How can I achieve this?

@explooosion
Copy link
Owner

Now only ClickEvent can open the InfoWindow.

This is a good feature.

@explooosion explooosion added enhancement Indicates new feature requests good first issue Indicates a good issue for first-time contributors labels Oct 11, 2018
@explooosion explooosion added help wanted Indicates that a maintainer wants help on an issue or pull request and removed good first issue Indicates a good issue for first-time contributors labels Oct 23, 2018
@explooosion explooosion pinned this issue Dec 25, 2018
@aeroxmotion
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests help wanted Indicates that a maintainer wants help on an issue or pull request
Projects
None yet
Development

No branches or pull requests

3 participants