reversed the overlay order (improves the "mark starred" feature)

This commit is contained in:
y20k 2021-03-16 16:47:47 +01:00
parent 7ad12a2670
commit 89c962c9a8
No known key found for this signature in database
GPG key ID: 824D4259F41FAFF6
2 changed files with 2 additions and 2 deletions

View file

@ -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)
} }
} }

View file

@ -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