feature/apk_versioning_mechanism #7
@ -105,17 +105,17 @@ public class HistoryActivity extends AppCompatActivity implements OnMapReadyCall
|
|||||||
private void displayHistory(ArrayList<HistPos> positions) {
|
private void displayHistory(ArrayList<HistPos> positions) {
|
||||||
LatLng latLng = null;
|
LatLng latLng = null;
|
||||||
PolylineOptions polylineOptions = new PolylineOptions();
|
PolylineOptions polylineOptions = new PolylineOptions();
|
||||||
// BitmapDescriptor markerIcon = BitmapDescriptorFactory.fromResource(R.drawable.arrow_right);
|
BitmapDescriptor markerIcon = BitmapDescriptorFactory.fromResource(R.drawable.history_pin);
|
||||||
for (int i = 0; i < positions.size(); i++) {
|
for (int i = 0; i < positions.size(); i++) {
|
||||||
HistPos pos = positions.get(i);
|
HistPos pos = positions.get(i);
|
||||||
if (pos.speed > 0) {
|
if (pos.speed > 0) {
|
||||||
latLng = new LatLng(pos.lat, pos.lng);
|
latLng = new LatLng(pos.lat, pos.lng);
|
||||||
polylineOptions.add(latLng);
|
polylineOptions.add(latLng);
|
||||||
|
|
||||||
// googleMap.addMarker(new MarkerOptions()
|
googleMap.addMarker(new MarkerOptions()
|
||||||
// .position(latLng)
|
.position(latLng)
|
||||||
// .icon(markerIcon)
|
.icon(markerIcon)
|
||||||
// .title(String.valueOf(i)));
|
.title(String.valueOf(i)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
safeDispatch/src/main/res/drawable-mdpi/history_pin.png
Normal file
BIN
safeDispatch/src/main/res/drawable-mdpi/history_pin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user