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

Event Click On marker #81

Open
GoogleCodeExporter opened this issue Sep 21, 2015 · 1 comment
Open

Event Click On marker #81

GoogleCodeExporter opened this issue Sep 21, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hey could you please add for the clickListener of the marker the event ,because 
the event passed is null :

    if (variables.containsKey("click")) {
            fireEvent(new ClickEvent(this, null));
    }

So we cant detect if the event was a right click or double click , I think you 
should do this :

    if (variables.containsKey("click")) {
        MouseEventDetails evt = MouseEventDetails 
                    .deSerialize((String) variables.get("click"));
        fireEvent(new ClickEvent(this, evt));
    }

cheers,
Amine

Original issue reported on code.google.com by [email protected] on 10 Jul 2012 at 2:44

@GoogleCodeExporter
Copy link
Author

So that we can use the event to define wich type is :

marker.addClickListener(new ClickListener() {
            public void click(ClickEvent event) {

               if(event.isDoubleClick()){
                    //do action
               }else if (event.getButton() == ClickEvent.BUTTON_RIGHT){
                                        //do action
                           }else {
                                        //do action
                                 }
               }
}

Original comment by [email protected] on 10 Jul 2012 at 3:30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant