@Override
 public void onLocationUpdated(GeoPoint currentLoc) {
   if (isPathToBeDisplayed && loadMapTask.isCompleted()) {
     routeTo(destinationNodeId, isWalkOnly, currentLoc, true);
     isPathToBeDisplayed = false;
     destinationNodeId = -1;
     mapView.invalidate();
   }
 }
 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
 }
 // 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
 }