我需要从用户长按 MapView 的位置创建一个气球叠加层。
首先,我将如何在选择点的位置动态创建气球覆盖?
用户将在应用程序中长按 MapView,手势检测器会捕捉到该手势。
我不知道如何在所选点创建气球叠加层。有任何想法吗?
mGestureDetector = new GestureDetector(new GestureDetector.SimpleOnGestureListener() {
@Override
public void onLongPress(MotionEvent e) {
Log.d(tag, "Long Press event");
// i need to create a balloon at the point that was long pressed
}
}
我称这是在地图上的叠加层中
mGestureDetector.onTouchEvent(ev);