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

Actuall example of listener in use. #127

Closed
sagive opened this Issue Feb 18, 2016 · 1 comment

Comments

2 participants
@sagive

sagive commented Feb 18, 2016

i can't seem to find an actual example of listener in use

i tried doing this:

mainmap = new Maplace({  
    locations: newLoc,  
    map_div: '#gmap',
    generate_controls: true,
    controls_on_map: false,
    controls_title: '',
    listeners: {
        click: function(map, event) {
            console.log('TEST');
        }
    }
}).Load();

But that "test" string seems to appear only on load (once) and than i get no reaction to the click.
Am i way off? can you share a complete example or point me in the right direction?

@stephandesouza

This comment has been minimized.

Show comment
Hide comment
@stephandesouza

stephandesouza Feb 29, 2016

Hey @sagive, i stopped in the same problem. The listener options is working well using the devel branch.

ping @danielemoraschi

stephandesouza commented Feb 29, 2016

Hey @sagive, i stopped in the same problem. The listener options is working well using the devel branch.

ping @danielemoraschi

danielemoraschi added a commit that referenced this issue Mar 12, 2016

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