开发者

OnTouchEvent in a MapItemizedOverlay

开发者 https://www.devze.com 2022-12-22 21:33 出处:网络
I have a MapView with a MapItemizedOverlay, like this : Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker);

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

精彩评论

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