开发者

OnTouchEvent in a MapItemizedOverlay

I have a MapView with a MapItemizedOverlay, like this :

Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker);
itemizedOverlay = new MapItemizedOverlay(drawable);

OverlayItem overlayitem = new OverlayItem(p, "", "");

itemizedOverlay.addOverlay(overlayitem);        
mapOverlays.add(itemizedOverlay); 

I want to know when the user touches the AndroiMarker, so I can show some info about that specific place. How do I do that ?

Tks in advanc开发者_开发知识库e!


Implement onTap() in your MapItemizedOverlay class.

Here is an example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜