Disable onMarkerClickListener completely in Maps API v2

后端 未结 6 1484
无人及你
无人及你 2021-02-07 08:30

I want to disable clicking/tapping on map markers. I know you can disable default behavior by setting up an empty map.setOnMarkerClickListener

6条回答
  •  我寻月下人不归
    2021-02-07 09:17

    It is not necessary to implement OnMarkerClickListner. Just try to remove this statement

    map.setOnMarkerClickListner(this)
    

    from your code and I hope it will solve your problem.

提交回复
热议问题