超图FAQ: 在MapView上面添加view,如下显示点的坐标信息:
View view = LinearLayout.inflate(MainActivity.this, R.layout.overlay_view, null);
TextView text=(TextView)view.findViewById(R.id.textView);
text.setText("当前坐标 X:"+arg1.getPoint().x+" Y:"+arg1.getPoint().y);
MapView.LayoutParams lp = new MapView.LayoutParams(172, 172, arg1.getPoint(), LayoutParams.CENTER);
mapView.addView(view, lp);
mapView.invalidate();