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

Actuall example of listener in use. #127

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

Actuall example of listener in use. #127

sagive opened this issue Feb 18, 2016 · 1 comment

Comments

@sagive
Copy link

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
Copy link

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

ping @danielemoraschi

danielemoraschi pushed 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants