reversed the overlay order (improves the "mark starred" feature)
This commit is contained in:
parent
7ad12a2670
commit
89c962c9a8
2 changed files with 2 additions and 2 deletions
|
@ -176,8 +176,8 @@ data class MapFragmentLayoutHolder(private var context: Context, private var mar
|
||||||
val mapOverlayHelper: MapOverlayHelper = MapOverlayHelper(markerListener)
|
val mapOverlayHelper: MapOverlayHelper = MapOverlayHelper(markerListener)
|
||||||
currentTrackOverlay = mapOverlayHelper.createTrackOverlay(context, track, trackingState)
|
currentTrackOverlay = mapOverlayHelper.createTrackOverlay(context, track, trackingState)
|
||||||
currentTrackSpecialMarkerOverlay = mapOverlayHelper.createSpecialMakersTrackOverlay(context, track, trackingState)
|
currentTrackSpecialMarkerOverlay = mapOverlayHelper.createSpecialMakersTrackOverlay(context, track, trackingState)
|
||||||
mapView.overlays.add(currentTrackOverlay)
|
|
||||||
mapView.overlays.add(currentTrackSpecialMarkerOverlay)
|
mapView.overlays.add(currentTrackSpecialMarkerOverlay)
|
||||||
|
mapView.overlays.add(currentTrackOverlay)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,8 +152,8 @@ data class TrackFragmentLayoutHolder(private var context: Context, private var m
|
||||||
trackOverlay = mapOverlayHelper.createTrackOverlay(context, track, Keys.STATE_TRACKING_NOT)
|
trackOverlay = mapOverlayHelper.createTrackOverlay(context, track, Keys.STATE_TRACKING_NOT)
|
||||||
trackSpecialMarkersOverlay = mapOverlayHelper.createSpecialMakersTrackOverlay(context, track, Keys.STATE_TRACKING_NOT, displayStartEndMarker = true)
|
trackSpecialMarkersOverlay = mapOverlayHelper.createSpecialMakersTrackOverlay(context, track, Keys.STATE_TRACKING_NOT, displayStartEndMarker = true)
|
||||||
if (track.wayPoints.isNotEmpty()) {
|
if (track.wayPoints.isNotEmpty()) {
|
||||||
mapView.overlays.add(trackOverlay)
|
|
||||||
mapView.overlays.add(trackSpecialMarkersOverlay)
|
mapView.overlays.add(trackSpecialMarkersOverlay)
|
||||||
|
mapView.overlays.add(trackOverlay)
|
||||||
}
|
}
|
||||||
|
|
||||||
// set up and show statistics sheet
|
// set up and show statistics sheet
|
||||||
|
|
Loading…
Reference in a new issue