@Override public void onMapClick(LatLng latLng) { route.addPoint(new Point(latLng, "Point " + route.getPointsNumber(), false)); MapUtilities.drawPathOnMap(mMap, route, getResources()); robotMarker = MapUtilities.placeRobotMarkerOnMap( robotMarker, mMap, Utilities.convertLocationToLatLng(robotLocation), true, getResources(), getApplicationContext()); }
public void addMyLocationToRoute(View view) { if (!running) { route.addPoint( new Point( new LatLng(robotLocation.getLatitude(), robotLocation.getLongitude()), "Point " + route.getPointsNumber(), false)); MapUtilities.drawPathOnMap(mMap, route, getResources()); robotMarker = MapUtilities.placeRobotMarkerOnMap( robotMarker, mMap, Utilities.convertLocationToLatLng(robotLocation), true, getResources(), getApplicationContext()); } }
public void showMyLocationClicked(View view) { robotMarker = MapUtilities.placeRobotMarkerOnMap( robotMarker, mMap, Utilities.convertLocationToLatLng(robotLocation), true, getResources(), getApplicationContext()); }
@Override public void onLocationChanged(Location location) { robotLocation = location; robotMarker = MapUtilities.placeRobotMarkerOnMap( robotMarker, mMap, Utilities.convertLocationToLatLng(robotLocation), false, getResources(), getApplicationContext()); }