Android Google maps APIv2 InfoWindow and Markers

前端 未结 2 1978
抹茶落季
抹茶落季 2020-12-21 15:36


I\'m using Google maps APIv2 for android. I\'ve implemented MapFragment, put markers where I need, added custom InfoWindow for markers.

The issue is - I

2条回答
  •  天涯浪人
    2020-12-21 15:45

    As stated at Google Maps Android API v2 Documentation:

    Note: The info window that is drawn is not a live view. The view is rendered as an image (using View.draw(Canvas)) at the time it is returned. This means that any subsequent changes to the view will not be reflected by the info window on the map. To update the info window later (e.g., after an image has loaded), call showInfoWindow(). Furthermore, the info window will not respect any of the interactivity typical for a normal view such as touch or gesture events. However you can listen to a generic click event on the whole info window as described in the section below.

    Perhaps you should try to call showInfoWindow() somewhere again in your code.

提交回复
热议问题