コード例 #1
0
 @Override
 public void onLocationUpdated(GeoPoint currentLoc) {
   if (isPathToBeDisplayed && loadMapTask.isCompleted()) {
     routeTo(destinationNodeId, isWalkOnly, currentLoc, true);
     isPathToBeDisplayed = false;
     destinationNodeId = -1;
     mapView.invalidate();
   }
 }
コード例 #2
0
 public MapDataManager(MapView mMapView, ResourceProxy rProxy) {
   mapView = mMapView;
   mContext = mMapView.getContext();
   mResourceProxy = rProxy;
   initializeOverlays(mContext);
   mapView.setMapListener(this);
   loadMapTask = new LoadMapDataTask();
   loadMapTask.execute(); // load graph and nodes to display
 }
コード例 #3
0
 // constructor used in directions class
 public MapDataManager(Context context, ResourceProxy rProxy) {
   mContext = context;
   mResourceProxy = rProxy;
   loadMapTask = new LoadMapDataTask();
   loadMapTask.execute(); // load graph and nodes to display
 }