From 0b887deb99c248e79d9a02d9f52ed615cd7d3a26 Mon Sep 17 00:00:00 2001 From: CiufudeanDani Date: Mon, 21 Mar 2022 12:19:23 +0200 Subject: [PATCH] remove marker icon --- .../java/com/safemobile/dispatch/HistoryActivity.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/safeDispatch/src/main/java/com/safemobile/dispatch/HistoryActivity.java b/safeDispatch/src/main/java/com/safemobile/dispatch/HistoryActivity.java index 46276d2..be33cae 100644 --- a/safeDispatch/src/main/java/com/safemobile/dispatch/HistoryActivity.java +++ b/safeDispatch/src/main/java/com/safemobile/dispatch/HistoryActivity.java @@ -20,6 +20,8 @@ import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapFragment; +import com.google.android.gms.maps.model.BitmapDescriptor; +import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.MarkerOptions; import com.google.android.gms.maps.model.PolylineOptions; @@ -103,15 +105,17 @@ public class HistoryActivity extends AppCompatActivity implements OnMapReadyCall private void displayHistory(ArrayList positions) { LatLng latLng = null; PolylineOptions polylineOptions = new PolylineOptions(); +// BitmapDescriptor markerIcon = BitmapDescriptorFactory.fromResource(R.drawable.arrow_right); for (int i = 0; i < positions.size(); i++) { HistPos pos = positions.get(i); if (pos.speed > 0) { latLng = new LatLng(pos.lat, pos.lng); polylineOptions.add(latLng); - googleMap.addMarker(new MarkerOptions() - .position(latLng) - .title(String.valueOf(i))); +// googleMap.addMarker(new MarkerOptions() +// .position(latLng) +// .icon(markerIcon) +// .title(String.valueOf(i))); } }