| | |
| | | |
| | | setupMap(); |
| | | |
| | | |
| | | // addTrailheadsLayer(); |
| | | url = Environment.getExternalStorageDirectory().getAbsolutePath()+ File.separator+_mActivity.getPackageName()+"/shoufei0223.mmpk"; |
| | | Log.i(TAG,"url ========="+url); |
| | | if (!TextUtils.isEmpty(url)){ |
| | | MyLog.i(TAG,"现在http加载:"+url); |
| | | addTrailheadsLayer(); |
| | | }else{ |
| | | url = Environment.getExternalStorageDirectory().getAbsolutePath()+ File.separator+_mActivity.getPackageName()+"/changdi.mmpk"; |
| | | MyLog.i(TAG,"现在加载:"+url); |
| | | final MobileMapPackage mobileMapPackage = new MobileMapPackage(url); |
| | | mobileMapPackage.loadAsync(); |
| | | mobileMapPackage.addDoneLoadingListener(()->{ |
| | |
| | | mMapView.setMap(mainArcGismapMMPK); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | return view; |
| | | } |
| | | |
| | |
| | | if (messageRemoteService != null) { |
| | | this.cmd = messageRemoteService.msgCode; |
| | | this.json = messageRemoteService.json; |
| | | MyLog.i(TAG, json); |
| | | |
| | | //太多了 不能打 |
| | | // MyLog.i(TAG, json); |
| | | |
| | | |
| | | RealTimeCarPos timeCarPos = gson.fromJson((String) json, RealTimeCarPos.class); |
| | |
| | | } |
| | | private void readGisCar() { |
| | | |
| | | String carFilePath = Environment.getExternalStorageDirectory().getAbsolutePath()+"/"+_mActivity.getPackageName()+"/gisvehiclemodel.json"; |
| | | String carFilePath = Environment.getExternalStorageDirectory().getAbsolutePath()+"/"+_mActivity.getPackageName()+"/vehiclemodel.json"; |
| | | if (TextUtils.isEmpty(carFilePath)){ |
| | | Toast.makeText(_mActivity, "车辆模型文件不存在", Toast.LENGTH_SHORT).show(); |
| | | MyLog.i (TAG, "GISCar车辆模型文件不存在"); |