I've set a mousedown listener on google map v3 to draw a polyline.
map.setOptions({
draggable: false,
zoomControl: false,
scrollwheel: false,
disableDoubleClickZoom: true,
disableDefaultUI: true
});
google.maps.event.addDomListener(map.getDiv(),'mousedown',function(e){
drawPolyline()
});
If the drawing finishes on google's POI then the description bubble opens and kills my function behavior.
If I use one of the built-in tools (drawing a polygon), all POI listeners are disabled.
Can I do the same?