aboutsummaryrefslogtreecommitdiff
path: root/androidApp
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-04 23:31:48 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-04 23:31:48 -0600
commit16a5b998c0d8d7c3e9cae94ec50aa6d9326558ec (patch)
tree9b659132d3625422223a98828d16dcfd9eca0056 /androidApp
parent50fc52b3f11dc6bccf2fc21fccc2422d5e4fc485 (diff)
downloadetbsa-trackermap-mobile-16a5b998c0d8d7c3e9cae94ec50aa6d9326558ec.tar.gz
etbsa-trackermap-mobile-16a5b998c0d8d7c3e9cae94ec50aa6d9326558ec.tar.bz2
etbsa-trackermap-mobile-16a5b998c0d8d7c3e9cae94ec50aa6d9326558ec.zip
Decreased marker centering zoom
Diffstat (limited to 'androidApp')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt21
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) {