ANDROID OverlayItem - Pass Values

Go To StackoverFlow.com

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.

2012-04-04 00:47
by abhi


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;
        }
}
2012-12-24 12:37
by ArtCHNK


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.

2012-04-27 16:19
by Hesham Saeed
Ads