checkpoint
This commit is contained in:
parent
9830ebf1e7
commit
63d2b073d2
1 changed files with 21 additions and 21 deletions
|
@ -160,27 +160,6 @@ class MapFragment : Fragment()
|
||||||
compassOverlay.setCompassCenter((screen_width / densityScalingFactor) - 36f, 36f)
|
compassOverlay.setCompassCenter((screen_width / densityScalingFactor) - 36f, 36f)
|
||||||
mapView.overlays.add(compassOverlay)
|
mapView.overlays.add(compassOverlay)
|
||||||
|
|
||||||
trackbook.load_homepoints()
|
|
||||||
create_homepoint_overlays(requireContext(), mapView, trackbook.homepoints)
|
|
||||||
if (database_changed_listener !in trackbook.database_changed_listeners)
|
|
||||||
{
|
|
||||||
trackbook.database_changed_listeners.add(database_changed_listener)
|
|
||||||
}
|
|
||||||
|
|
||||||
centerMap(currentBestLocation)
|
|
||||||
|
|
||||||
// initialize track overlays
|
|
||||||
currentTrackOverlay = null
|
|
||||||
currentTrackSpecialMarkerOverlay = null
|
|
||||||
|
|
||||||
// initialize main button state
|
|
||||||
update_main_button()
|
|
||||||
|
|
||||||
mapView.setOnTouchListener { v, event ->
|
|
||||||
continuous_auto_center = false
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
val receiver: MapEventsReceiver = object: MapEventsReceiver
|
val receiver: MapEventsReceiver = object: MapEventsReceiver
|
||||||
{
|
{
|
||||||
override fun singleTapConfirmedHelper(p: GeoPoint?): Boolean
|
override fun singleTapConfirmedHelper(p: GeoPoint?): Boolean
|
||||||
|
@ -224,6 +203,27 @@ class MapFragment : Fragment()
|
||||||
}
|
}
|
||||||
mapView.overlays.add(MapEventsOverlay(receiver))
|
mapView.overlays.add(MapEventsOverlay(receiver))
|
||||||
|
|
||||||
|
trackbook.load_homepoints()
|
||||||
|
create_homepoint_overlays(requireContext(), mapView, trackbook.homepoints)
|
||||||
|
if (database_changed_listener !in trackbook.database_changed_listeners)
|
||||||
|
{
|
||||||
|
trackbook.database_changed_listeners.add(database_changed_listener)
|
||||||
|
}
|
||||||
|
|
||||||
|
centerMap(currentBestLocation)
|
||||||
|
|
||||||
|
// initialize track overlays
|
||||||
|
currentTrackOverlay = null
|
||||||
|
currentTrackSpecialMarkerOverlay = null
|
||||||
|
|
||||||
|
// initialize main button state
|
||||||
|
update_main_button()
|
||||||
|
|
||||||
|
mapView.setOnTouchListener { v, event ->
|
||||||
|
continuous_auto_center = false
|
||||||
|
false
|
||||||
|
}
|
||||||
|
|
||||||
// set up buttons
|
// set up buttons
|
||||||
mainButton.setOnClickListener {
|
mainButton.setOnClickListener {
|
||||||
handleTrackingManagementMenu()
|
handleTrackingManagementMenu()
|
||||||
|
|
Loading…
Reference in a new issue