mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-06 20:47:22 +00:00
Swapped colors and enabled smooth scroll on the map screen
This commit is contained in:
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
|
textSize = 28f
|
||||||
strokeWidth = 2f
|
strokeWidth = 2f
|
||||||
style = Paint.Style.FILL
|
style = Paint.Style.FILL
|
||||||
color = Color.parseColor("#FFE082")
|
color = Color.parseColor("#CCFFFFFF")
|
||||||
setShadowLayer(3f, 3f, 3f, Color.BLACK)
|
setShadowLayer(3f, 3f, 3f, Color.BLACK)
|
||||||
}
|
}
|
||||||
private val labelRect = Rect()
|
private val labelRect = Rect()
|
||||||
@@ -165,6 +165,7 @@ class MapFragment : Fragment(R.layout.fragment_map) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun handleTrack(satTrack: List<List<GeoPos>>) {
|
private fun handleTrack(satTrack: List<List<GeoPos>>) {
|
||||||
|
val center = GeoPoint(satTrack[0][0].latitude, satTrack[0][0].longitude)
|
||||||
val trackOverlay = FolderOverlay()
|
val trackOverlay = FolderOverlay()
|
||||||
satTrack.forEach { track ->
|
satTrack.forEach { track ->
|
||||||
val trackPoints = track.map { GeoPoint(it.latitude, it.longitude) }
|
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.overlays[1] = trackOverlay
|
||||||
|
binding.mapView.controller.animateTo(center)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleFootprint(satPos: SatPos) {
|
private fun handleFootprint(satPos: SatPos) {
|
||||||
|
|||||||
@@ -142,7 +142,7 @@
|
|||||||
|
|
||||||
<style name="WorldMapText">
|
<style name="WorldMapText">
|
||||||
<item name="android:textSize">@dimen/text_size_medium</item>
|
<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>
|
||||||
|
|
||||||
<style name="WorldMapTitle">
|
<style name="WorldMapTitle">
|
||||||
|
|||||||
Reference in new issue
Block a user