Adding buttons to map infowindow android

前端 未结 1 1082
自闭症患者
自闭症患者 2020-12-11 03:13

In the new Google Maps for Android API v2, I can very easily get custom markers and info windows to display. However, I\'m trying to have multiple buttons inside of my info

相关标签:
1条回答
  • 2020-12-11 04:08

    Just found this in the documentation.

    As mentioned in the previous section on info windows, an info window is not a live View, rather the view is rendered as an image onto the map. As a result, any listeners you set on the view are disregarded and you cannot distinguish between click events on various parts of the view. You are advised not to place interactive components — such as buttons, checkboxes, or text inputs — within your custom info window.

    Unfortunately, that answers it. I was trying to add the same function as you.

    0 讨论(0)
提交回复
热议问题