Displaying total number as text for multiple pins with one pin at the same location in map in android
Asked Answered
J

2

6

Displaying total number as text for multiple pins at the same location in map in android

I have 5 images to display on same latitude and longitude.. so I want to give total number as text with one image.. and when I click on that image than display all 5 images in grid view... so how to display total number as text for multiple pins with the one pin at the same location?

a busy cat ![two muppets][1]

Julienne answered 16/10, 2012 at 12:32 Comment(0)
A
4

Here is my question and answer where u can dynamically number your pin's text. Check it and let me know if you need any help.

How to Create Dynamically numbered Pin Pointers on MapView?

Alvita answered 16/10, 2012 at 13:23 Comment(0)
E
2

You can use BadgeView here and add Text over the ImageView and you can update the text of the Badge every time you get the update.

Pseudo code,

BadgeView badge = new BadgeView(mContext, your_image_view);
badgeViewCart.setText(updated_data);
Earing answered 16/10, 2012 at 13:20 Comment(1)
I am using google map.... so I import com.google.android.maps.GeoPoint; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.MapView; import com.google.android.maps.OverlayItem;Julienne

© 2022 - 2024 — McMap. All rights reserved.