編集可能なポリゴンがあり、頂点がドラッグされたときにイベントをリッスンしたい(ポリゴンのサイズ変更)。通常、パスを「set_at」イベントにアタッチするのは適切ですが、ポリゴン全体をドラッグすると多くのイベントが発生します。
google.maps.event.addListener(polygon, 'dragend', function(){search();});
google.maps.event.addListener(polygon.getPath(), 'insert_at', function(e, e1){search();});
google.maps.event.addListener(polygon.getPath(), 'remove_at', function(e, e1){search();});
//this also fires a lot of events when ploygon is dragged
google.maps.event.addListener(polygon.getPath(), 'set_at', function(){search();});
私が達成したいのは、ドラッグされたときにイベントを発生させない「shape_changed」のようなイベントを持つことです。