Skip to content

Commit

Permalink
Pushing version 3.1.0
Browse files Browse the repository at this point in the history
Matias Dahlin Holst committed Sep 11, 2024
1 parent a7e07b3 commit f1dea93
Showing 6 changed files with 94 additions and 75 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ dependencies {
implementation ("com.mapbox.maps:android:11.3.0") {
exclude group: 'com.mapbox.plugin', module: 'maps-lifecycle'
}
implementation "com.mapspeople.mapsindoors:mapbox-flutter:4.8.8"
implementation "com.mapspeople.mapsindoors:mapbox-flutter:4.8.9"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.0"
implementation 'com.github.bumptech.glide:glide:4.16.0'
}
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ import android.view.View
import com.mapbox.maps.MapView
import com.mapbox.maps.MapboxMap
import com.mapbox.maps.Style
import com.mapbox.maps.plugin.attribution.attribution
import com.mapbox.maps.plugin.animation.MapAnimationOptions
import com.mapbox.maps.plugin.animation.flyTo
import com.mapspeople.mapsindoors.core.*
@@ -21,7 +22,10 @@ abstract class PlatformMapView(private val context: Context) : PlatformMapViewIn

init {
mMapboxMap = mMap.getMapboxMap()
mMapboxMap?.loadStyleUri(Style.MAPBOX_STREETS)
//TODO: This solution is temporary until we find a way to make the attribution view compatible with Flutter
mMap?.attribution?.updateSettings {
this.enabled = false
}
whenMapReady()
}

Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler

class DisplayRuleHandler(messenger: BinaryMessenger) : MethodCallHandler {
class DisplayRuleHandler(messenger: BinaryMessenger, private val getMapView: () -> MapView?) : MethodCallHandler {
private val displayRuleChannel: MethodChannel
private val gson = Gson()
init {
@@ -713,6 +713,7 @@ class DisplayRuleHandler(messenger: BinaryMessenger) : MethodCallHandler {
result.notImplemented()
}
}
getMapView()?.mapControl?.refresh()
return@onMethodCall
}
success(null)
Loading

0 comments on commit f1dea93

Please sign in to comment.