aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {