How to set tag to Google Map's marker in Android?

前端 未结 3 1590
傲寒
傲寒 2021-02-03 22:12

I\'m trying to set onInfoWindowClickListener for each marker that hit the related API according to the POJO id. That\'s what I found for settin

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-03 22:21

    I have one way. Just create HashMap with both your main Marker and another one with POJO Class and get back your POJO Class based on Particular Marker clicked on getInfoContents(.....)

提交回复
热议问题