Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マップ上にいくつかのポリゴンがあり、ユーザーがそれらをダブルクリックしたときに、ズームが発生しないようにします。ただし、マップの他の部分でダブルクリックズームを有効にしたいです。これを実装する方法はありますか?
どうもありがとう。
ポリゴンの dblclick イベントを観察し、発生時にイベントの stop() メソッドを呼び出します。
google.maps.event.addListener(polygonObject,'dblclick',function(e){e.stop();})