endian11
2020-09-10 26776f09752b5aa6197e158a5a772cb3694996ac
app/src/main/java/safeluck/drive/evaluation/fragment/ArcGisMapFragment.java
@@ -44,7 +44,10 @@
import me.yokeyword.fragmentation.SupportFragment;
import safeluck.drive.evaluation.Constant;
import safeluck.drive.evaluation.R;
import safeluck.drive.evaluation.bean.BaseDataUIBean;
import safeluck.drive.evaluation.bean.ExamPlatformData;
import safeluck.drive.evaluation.bean.GisCarModel;
import safeluck.drive.evaluation.bean.MapInfoHead;
import safeluck.drive.evaluation.bean.RTKInfoBean;
import safeluck.drive.evaluation.cEventCenter.CEventCenter;
import safeluck.drive.evaluation.cEventCenter.ICEventListener;
@@ -58,7 +61,7 @@
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
public class ArcGisMapFragment extends SupportFragment {
public class ArcGisMapFragment extends SupportFragment implements View.OnClickListener {
    private static final String TAG = ArcGisMapFragment.class.getSimpleName();
@@ -129,6 +132,7 @@
        View view = inflater.inflate(R.layout.layout_arc_gis,container,false);
        mMapView = view.findViewById(R.id.mapView);
        view.findViewById(R.id.btn_change_map).setOnClickListener(this);
        Log.i(TAG,String.format("当前线程号%d,json=%s",Thread.currentThread().getId(),"onCreateView"));
        url = getArguments().getString("arcgis_url");
        CThreadPoolExecutor.runInBackground(()->{
@@ -150,6 +154,29 @@
    RTKInfoBean rtkInfoBean;
    boolean flag = true;
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_change_map:
                if (ExamPlatformData.getInstance().getExamType()>ExamPlatformData.EXAM_TYPE_ChangKAO){
                    RoadDriveMapFragmentaa jiaXiaoFragment = findFragment(RoadDriveMapFragmentaa.class);
                    if (jiaXiaoFragment == null) {
                        jiaXiaoFragment = (RoadDriveMapFragmentaa) RoadDriveMapFragmentaa.newInstance();
                    }
                    startWithPop(jiaXiaoFragment);
                }else{
                    MapFragment jiaXiaoFragment = findFragment(MapFragment.class);
                    if (jiaXiaoFragment == null) {
                        jiaXiaoFragment = (MapFragment) MapFragment.newInstance();
                    }
                    startWithPop(jiaXiaoFragment);
                }
                break;
        }
    }
    class CalRunnable implements Runnable{
        @Override