マーカーにマウスオーバーしたときにバウンス効果を持たせ、マウスを離したときにアニメーションを停止したいと思います。
次のように、リスナーで mouseover および mouseout イベントを使用しようとしています。
google.maps.event.addListener(marker, 'mouseover', function() {
this.setAnimation(google.maps.Animation.BOUNCE);
});
google.maps.event.addListener(marker, 'mouseout', function() {
this.setAnimation(null);
});
しかし、これは奇妙に見えます。間違った動作を言葉で説明することはできません。私が記録したこの 15 秒間のビデオをご覧ください。
===> http://youtu.be/Hcy8823nNQU
私が必要としているのは、おそらくマウスアウトではなくマウスリーブですが、そのイベントは API によって提供されていません。