use of com.junjunguo.pocketmaps.map.MapHandler in project PocketMaps by junjunguo.
the class MapActions method activeNavigator.
/**
* drawer polyline on map , active navigator instructions(directions) if on
* @return True when pathfinder-routes will be shown.
*/
private boolean activeNavigator() {
GeoPoint startPoint = Destination.getDestination().getStartPoint();
GeoPoint endPoint = Destination.getDestination().getEndPoint();
if (startPoint != null && endPoint != null) {
// show path finding process
navSettingsVP.setVisibility(View.INVISIBLE);
View pathfinding = activity.findViewById(R.id.map_nav_settings_path_finding);
pathfinding.setVisibility(View.VISIBLE);
MapHandler mapHandler = MapHandler.getMapHandler();
if (Variable.getVariable().isDirectionsON()) {
mapHandler.setNeedPathCal(true);
// rest running at
}
return true;
}
return false;
}
Aggregations