Actuall example of listener in use. #127

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

Projects

None yet

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

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

ping @danielemoraschi

@danielemoraschi danielemoraschi pushed a commit that closed this issue Mar 1, 2016
Daniele Moraschi fixed #127 map listeners issue 3d26308
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment