Android Google Maps v2 - Add object to marker

前端 未结 4 1228
说谎
说谎 2020-12-31 00:02

How can we add an object to a marker in the new Google Maps Android API v2? So if we click on the InfoWindow, we can do something with the obje

4条回答
  •  误落风尘
    2020-12-31 00:28

    Not really sure if this is the correct answer, but take a look at this blogpost I made about this problem:

    Since Marker is final, it's this can easily be solved by linking the data with the Marker in a Map, for example HashMap or HashMap

    Here's a tutorial that explains all: http://bon-app-etit.blogspot.be/2012/12/add-informationobject-to-marker-in.html

提交回复
热议问题