Swapped colors and enabled smooth scroll on the map screen

This commit is contained in:
Arty Bishop committed 2022-02-24 18:53:48 +00:00
1 parent 89be2dfa43
commit 550ffdf92d
2 files changed
+4 -2

No files matched your search

@@ -66,7 +66,7 @@ class MapFragment : Fragment(R.layout.fragment_map) {
textSize = 28f
strokeWidth = 2f
style = Paint.Style.FILL
color = Color.parseColor("#FFE082")
color = Color.parseColor("#CCFFFFFF")
setShadowLayer(3f, 3f, 3f, Color.BLACK)
}
private val labelRect = Rect()
@@ -165,6 +165,7 @@ class MapFragment : Fragment(R.layout.fragment_map) {
}
private fun handleTrack(satTrack: List<List<GeoPos>>) {
val center = GeoPoint(satTrack[0][0].latitude, satTrack[0][0].longitude)
val trackOverlay = FolderOverlay()
satTrack.forEach { track ->
val trackPoints = track.map { GeoPoint(it.latitude, it.longitude) }
@@ -179,6 +180,7 @@ class MapFragment : Fragment(R.layout.fragment_map) {
}
}
binding.mapView.overlays[1] = trackOverlay
binding.mapView.controller.animateTo(center)
}
private fun handleFootprint(satPos: SatPos) {
+1 -1
View File
@@ -142,7 +142,7 @@
<style name="WorldMapText">
<item name="android:textSize">@dimen/text_size_medium</item>
<item name="android:textColor">@color/textMain</item>
<item name="android:textColor">@color/accent</item>
</style>
<style name="WorldMapTitle">