Disable double left click on google map

前端 未结 6 2111
清酒与你
清酒与你 2021-02-03 22:14

May I know how can I disable double click on google map so that the info window will not close when I double click on google map? Can it be done through google map api?

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-03 23:09

    It cannot be done, you would essentially have to block or prevent the event from happening.

    You could try something like createInterceptor() like in EXT JS. This would fire before the event is fired, and you can return false to prevent the actual event to fire, but I am not sure it will prevent the code from executing before the event is fired within that code.

提交回复
热议问题