Is there a Google Map event listener for panning or zooming map?

后端 未结 4 1447
鱼传尺愫
鱼传尺愫 2021-02-19 20:08

I want to be able to detect if the user has zoomed out or moved the map center. I have seen post about an event listener but in Javascript and I am trying to see if there is any

4条回答
  •  故里飘歌
    2021-02-19 20:49

    Swift

    extension MyMapViewController:GMSMapViewDelegate {
    
        func mapView(_ mapView: GMSMapView, didChange position: GMSCameraPosition) {
            //do something
        }
    }
    

提交回复
热议问题