Skip to content

Commit 6d535f5

Browse files
committed
lint
1 parent c97123d commit 6d535f5

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/Extentions.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ fun FLTMapInterfaces.RenderedQueryGeometry.toRenderedQueryGeometry(context: Cont
5858
FLTMapInterfaces.Type.LIST -> {
5959
val array: Array<Array<Double>> =
6060
Gson().fromJson(value, Array<Array<Double>>::class.java)
61-
RenderedQueryGeometry.valueOf(array.map {
62-
ScreenCoordinate(it[0].toDevicePixels(context).toDouble(), it[1].toDevicePixels(context).toDouble())
63-
}.toList())
61+
RenderedQueryGeometry.valueOf(
62+
array.map {
63+
ScreenCoordinate(it[0].toDevicePixels(context).toDouble(), it[1].toDevicePixels(context).toDouble())
64+
}.toList()
65+
)
6466
}
6567
FLTMapInterfaces.Type.SCREEN_COORDINATE -> {
6668
val pointArray = Gson().fromJson(
@@ -436,4 +438,4 @@ fun JSONObject.toMap(): Map<String, *> = keys().asSequence().associateWith {
436438

437439
fun Number.toLogicalPixels(context: Context): Double {
438440
return this.toDouble() / context.resources.displayMetrics.density
439-
}
441+
}

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/mapping/GesturesMappings.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package com.mapbox.maps.mapbox_maps.mapping
44
import android.content.Context
55
import com.mapbox.maps.ScreenCoordinate
66
import com.mapbox.maps.mapbox_maps.toDevicePixels
7-
import com.mapbox.maps.mapbox_maps.toFLTScreenCoordinate
87
import com.mapbox.maps.mapbox_maps.toLogicalPixels
98
import com.mapbox.maps.pigeons.FLTSettings
109
import com.mapbox.maps.plugin.ScrollMode

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/mapping/LocationComponentMappings.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import android.content.Context
55
import android.graphics.Bitmap
66
import android.graphics.BitmapFactory
77
import android.graphics.drawable.BitmapDrawable
8-
import com.mapbox.maps.mapbox_maps.toDevicePixels
9-
import com.mapbox.maps.mapbox_maps.toLogicalPixels
108
import com.mapbox.maps.pigeons.FLTSettings
119
import com.mapbox.maps.plugin.LocationPuck2D
1210
import com.mapbox.maps.plugin.LocationPuck3D
@@ -104,4 +102,4 @@ fun LocationComponentSettingsInterface2.toFLT() = FLTSettings.LocationComponentS
104102
settings.build()
105103
}
106104

107-
// End of generated file.
105+
// End of generated file.

example/lib/ornaments.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class OrnamentsPageBodyState extends State<OrnamentsPageBody> {
8383
marginLeft: 40,
8484
marginTop: 40,
8585
marginRight: 0,
86-
));
86+
));
8787
}
8888

8989
@override

0 commit comments

Comments
 (0)