Search in sources :

Example 1 with MapHandler

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;
}
Also used : GeoPoint(org.oscim.core.GeoPoint) MapHandler(com.junjunguo.pocketmaps.map.MapHandler) MapView(org.oscim.android.MapView) View(android.view.View) AdapterView(android.widget.AdapterView) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView)

Aggregations

RecyclerView (android.support.v7.widget.RecyclerView)1 View (android.view.View)1 AdapterView (android.widget.AdapterView)1 TextView (android.widget.TextView)1 MapHandler (com.junjunguo.pocketmaps.map.MapHandler)1 MapView (org.oscim.android.MapView)1 GeoPoint (org.oscim.core.GeoPoint)1