diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-04 23:31:48 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-04 23:31:48 -0600 |
commit | fdf44523cf05fbed75ae1611d90f1d7c8673a1be (patch) | |
tree | af6a9c5e1498037efee0d193f6ddcdad3c0041f4 /androidApp | |
parent | 08863d4c9336d7d8a795124fefcf0efa9c23cb30 (diff) | |
download | etbsa-trackermap-mobile-fdf44523cf05fbed75ae1611d90f1d7c8673a1be.tar.gz etbsa-trackermap-mobile-fdf44523cf05fbed75ae1611d90f1d7c8673a1be.tar.bz2 etbsa-trackermap-mobile-fdf44523cf05fbed75ae1611d90f1d7c8673a1be.zip |
Decreased marker centering zoom
Diffstat (limited to 'androidApp')
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt index a8eb2fa..6873431 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt @@ -7,20 +7,7 @@ import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup -import com.mousebird.maply.ComponentObject -import com.mousebird.maply.GlobeController -import com.mousebird.maply.GlobeMapFragment -import com.mousebird.maply.MapController -import com.mousebird.maply.MarkerInfo -import com.mousebird.maply.Point2d -import com.mousebird.maply.QuadImageLoader -import com.mousebird.maply.RemoteTileInfoNew -import com.mousebird.maply.RenderController -import com.mousebird.maply.RenderControllerInterface -import com.mousebird.maply.SamplingParams -import com.mousebird.maply.ScreenMarker -import com.mousebird.maply.SelectedObject -import com.mousebird.maply.SphericalMercatorCoordSystem +import com.mousebird.maply.* import java.io.File import kotlinx.coroutines.DelicateCoroutinesApi import mx.trackermap.TrackerMap.android.R @@ -111,7 +98,7 @@ class MapFragment : GlobeMapFragment() { fun clear() { mapControl.removeObjects( markers.map { it.second }, - RenderControllerInterface.ThreadMode.ThreadAny + ThreadMode.ThreadAny ) } @@ -135,11 +122,11 @@ class MapFragment : GlobeMapFragment() { mapControl.addScreenMarkers( screenMarkers, MarkerInfo(), - RenderControllerInterface.ThreadMode.ThreadAny + ThreadMode.ThreadAny ) } - fun focusOn(latitude: Double, longitude: Double, zoom: Double = 0.000008, animated: Boolean = true) { + fun focusOn(latitude: Double, longitude: Double, zoom: Double = 0.0000144, animated: Boolean = true) { val lat = latitude * Math.PI / 180 val lon = longitude * Math.PI / 180 if (animated) { |