How to change the marker for the overlay on tap for android?

前端 未结 4 1516
北海茫月
北海茫月 2021-02-07 20:06

i have made an application in which i need to change the drawable of an overlayitem when a user clicks on it. i am using the following code to achieve this effect:



        
4条回答
  •  萌比男神i
    2021-02-07 20:54

    I have no idea what view1ComplainPoleList is and whether it is impacting matters. I handled this by subclassing OverlayItem and overriding getMarker() to return the proper image. Here is the sample project in which I use this technique.

提交回复
热议问题