On zoom event for google maps on android

前端 未结 11 2017
清酒与你
清酒与你 2020-11-30 00:04

We\'re building an application which is using the google maps api for android.

I have my MapController and MapView, and I enable the built-in zoom controls using:

11条回答
  •  爱一瞬间的悲伤
    2020-11-30 00:21

    The android API suggests you use ZoomControls which has a setOnZoomInClickListener()

    To add these zoom controls you would:

    ZoomControls mZoom = (ZoomControls) mapView.getZoomControls();
    

    And then add mZoom to your layout.

提交回复
热议问题