How to listen for user generated zoom in Google Maps?

前端 未结 5 2117
借酒劲吻你
借酒劲吻你 2021-02-04 06:24

I want to know when a Google Maps zoom_changed event is fired specifically by a user interaction with the +/- zoom buttons. If I use a general event listener for zoom_changed,

5条回答
  •  时光说笑
    2021-02-04 06:56

    I would suggest using a custom control for zoom in/out and then using event listeners on the custom congrol:

    http://goo.gl/u8gKC

    You can easily hide the default zoom control:

    http://goo.gl/N5HIE

    (zoomControl to be specific)

提交回复
热议问题