yashwanthbabu / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

Can't seem to bind to Google Map-specific events #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $('#map_canvas').addEventListener('zoom_changed', function(){alert('hi');});
2. zoom the map
3. nothing gets alerted

What is the expected output? What do you see instead?
Id expect an alert to be fired when the map is zommed

What version of the product are you using? On what operating system?
3.0 alpha

Please provide any additional information below.

Original issue reported on code.google.com by cmsim...@gmail.com on 19 Oct 2011 at 3:46

GoogleCodeExporter commented 9 years ago
You need to bind it to the map object.
var map = $('#map_canvas').gmap('get', 'map');
$(map).addEventListener('zoom_changed', function(){alert('hi');});

Original comment by johansalllarsson on 19 Oct 2011 at 8:15

GoogleCodeExporter commented 9 years ago
Thank you.

Original comment by cmsim...@gmail.com on 19 Oct 2011 at 4:42