Google Map Dialog/Info Window Not Appearing on Touch

后端 未结 2 1266
闹比i
闹比i 2021-01-23 03:41

I am trying to add infowindows to markers/pushpins on the map. ATM, it is not working. Current code: TravelBuddy.java/TabHost

package com.jappapps.android.travel         


        
相关标签:
2条回答
  • 2021-01-23 04:18

    Unfortunately, Android Google Maps API does not provide info windows for markers/pushpins. You have to write that by yourself. However, there is 3rd party open source 'library' which implements it and it is available here:

    http://github.com/jgilfelt/android-mapviewballoons

    0 讨论(0)
  • 2021-01-23 04:36

    You have to add this line to your code:

    mapOverlays.add(itemizedoverlay);
    
    0 讨论(0)
提交回复
热议问题