| | |
| | | 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; |
| | |
| | | * 邮箱: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(); |
| | | |
| | |
| | | |
| | | 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(()->{ |
| | |
| | | |
| | | 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 |