Hi, Peter,
Actually, if you look my code, I have a global array of overlay item.
And I override following code:
public int size()
{
return mFriendList.size();
}
public LptOverlayItem createItem(int i)
Hi
this can be trigger by not create OverlayItem
//customized ItemizedOverlay
protected class FriendOverLay extends ItemizedOverlay
private List mItemList = new ArrayList();
{
public FriendOverLay(Drawable marker) {
super(marker);
*mItemList.add(new OverlayItem(whatAroundMe.currentPoint ,
Hi, Mark,
Here is the code snip:
--
Main Map Screen
---
public class MyMapActivity extends MapActivity implements Observer{
//global array of overlay items
List mFriendList = Collections.synchronizedLis
elephantbug wrote:
> I extend the MapActivity and have an ItemizedOverlay which will
> display array of items(For example, people) on top of MapView. These
> items' location are moving and some new items might be added in or
> some might be removed. There is another thread managing these items.
>
4 matches
Mail list logo