实现三维侧距离时候也显示长度标签
如何在测量回调里面获取测量时候最后一个位置的坐标? class MeasureHandler extends Handler { @Override public void handleMessage(Message msg) { if (AnalysisTypeArea == 0) { double msgLength = Math.round(msg.getData().getDouble("length")); if (msgLength < 1000) { // tv_distanceAndArea.setText(" 共 " + msgLength + " 米"); } else { // tv_distanceAndArea.setText(" 共 " + Math.round(msgLength / 1000) + "公里"); } } else if (AnalysisTypeArea == 1) { double msgLength = Math.round(msg.getData().getDouble("Area")); if (msgLength < 1000) { // tv_distanceAndArea.setText(" 共 " + msgLength + " 平方米"); } else { // tv_distanceAndArea.setText(" 共 " + Math.round(msgLength / 1000) + "平方公里"); } } } }