Skip to content

Commit

Permalink
remove compass overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
wuan committed Oct 16, 2023
1 parent 50bad1c commit 483cd1d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/src/main/java/org/blitzortung/android/map/MapFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import org.blitzortung.android.app.Main
import org.blitzortung.android.app.helper.ViewHelper
import org.blitzortung.android.app.view.OnSharedPreferenceChangeListener
import org.blitzortung.android.app.view.PreferenceKey
import org.blitzortung.android.app.view.get
Expand Down Expand Up @@ -66,11 +67,6 @@ class MapFragment : Fragment(), OnSharedPreferenceChangeListener {
centered.setBoolean(mScaleBarOverlay, true)
mapView.overlays.add(this.mScaleBarOverlay)

compassOverlay = CompassOverlay(context, InternalCompassOrientationProvider(context), mapView)
compassOverlay.enableCompass()
compassOverlay.setCompassCenter(mapView.width / 2.0f, mapView.height / 2.0f)
mapView.overlays.add(this.compassOverlay)

//built in zoom controls
mapView.zoomController.setVisibility(CustomZoomButtonsController.Visibility.SHOW_AND_FADEOUT)

Expand Down

0 comments on commit 483cd1d

Please sign in to comment.