0

Is it possible to send values other than marker, title and snippet in OverLayItem. Because I want to handle many buttons when a balloon in map is clicked so I need extra values like IDs, status, etc.

animuson
  • 53,861
  • 28
  • 137
  • 147
abhi
  • 503
  • 6
  • 24

2 Answers2

0

Yes you can pass of course, OverlayItem is just like any other class, change its constructor and pass for it the values you need in the class.

Hesham Saeed
  • 5,358
  • 7
  • 37
  • 57
0

Please try to create new class of overlayitem

import com.google.android.maps.OverlayItem;

import com.google.android.maps.GeoPoint;

public class MyOverlayItem extends OverlayItem{

    public String newvalue;

        public MyOverlayItem (GeoPoint point,String arg1,String  arg2,String newvalue)
        {
            super(point, arg1, arg2);
            this.newvalue=newvalue;
        }
}
ArtCHNK
  • 46
  • 5