@@ -21,18 +21,6 @@ import androidx.lifecycle.lifecycleScope
2121import com.airbnb.mvrx.fragmentViewModel
2222import com.airbnb.mvrx.withState
2323import com.google.android.material.bottomsheet.BottomSheetBehavior
24- import com.mapbox.mapboxsdk.geometry.LatLng
25- import com.mapbox.mapboxsdk.geometry.LatLngBounds
26- import com.mapbox.mapboxsdk.maps.MapView
27- import com.mapbox.mapboxsdk.maps.MapboxMap
28- import com.mapbox.mapboxsdk.maps.MapboxMapOptions
29- import com.mapbox.mapboxsdk.maps.Style
30- import com.mapbox.mapboxsdk.maps.SupportMapFragment
31- import com.mapbox.mapboxsdk.plugins.annotation.OnSymbolClickListener
32- import com.mapbox.mapboxsdk.plugins.annotation.Symbol
33- import com.mapbox.mapboxsdk.plugins.annotation.SymbolManager
34- import com.mapbox.mapboxsdk.plugins.annotation.SymbolOptions
35- import com.mapbox.mapboxsdk.style.layers.Property
3624import dagger.hilt.android.AndroidEntryPoint
3725import im.vector.app.R
3826import im.vector.app.core.extensions.addChildFragment
@@ -54,6 +42,18 @@ import im.vector.app.features.location.zoomToBounds
5442import im.vector.app.features.location.zoomToLocation
5543import im.vector.lib.strings.CommonStrings
5644import kotlinx.coroutines.launch
45+ import org.maplibre.android.geometry.LatLng
46+ import org.maplibre.android.geometry.LatLngBounds
47+ import org.maplibre.android.maps.MapLibreMap
48+ import org.maplibre.android.maps.MapLibreMapOptions
49+ import org.maplibre.android.maps.MapView
50+ import org.maplibre.android.maps.Style
51+ import org.maplibre.android.maps.SupportMapFragment
52+ import org.maplibre.android.plugins.annotation.OnSymbolClickListener
53+ import org.maplibre.android.plugins.annotation.Symbol
54+ import org.maplibre.android.plugins.annotation.SymbolManager
55+ import org.maplibre.android.plugins.annotation.SymbolOptions
56+ import org.maplibre.android.style.layers.Property
5757import timber.log.Timber
5858import java.lang.ref.WeakReference
5959import javax.inject.Inject
@@ -74,7 +74,7 @@ class LiveLocationMapViewFragment :
7474
7575 private val viewModel: LiveLocationMapViewModel by fragmentViewModel()
7676
77- private var mapboxMap: WeakReference <MapboxMap >? = null
77+ private var mapboxMap: WeakReference <MapLibreMap >? = null
7878 private var mapView: MapView ? = null
7979 private var symbolManager: SymbolManager ? = null
8080 private var mapStyle: Style ? = null
@@ -214,7 +214,7 @@ class LiveLocationMapViewFragment :
214214 private fun getOrCreateSupportMapFragment () =
215215 childFragmentManager.findFragmentByTag(MAP_FRAGMENT_TAG ) as ? SupportMapFragment
216216 ? : run {
217- val options = MapboxMapOptions .createFromAttributes(requireContext(), null )
217+ val options = MapLibreMapOptions .createFromAttributes(requireContext(), null )
218218 SupportMapFragment .newInstance(options)
219219 .also { addChildFragment(R .id.liveLocationMapFragmentContainer, it, tag = MAP_FRAGMENT_TAG ) }
220220 }
0 commit comments