@@ -16,8 +16,8 @@ import androidx.compose.ui.text.font.FontWeight
1616import androidx.compose.ui.unit.dp
1717import androidx.compose.ui.unit.sp
1818// Add imports for geojson Point & BoundingBox
19- import com.mapbox.geojson.Point
20- import com.mapbox.geojson.BoundingBox
19+ // import com.mapbox.geojson.Point
20+ // import com.mapbox.geojson.BoundingBox
2121import com.mapbox.maps.dsl.cameraOptions
2222import com.mapbox.maps.extension.compose.animation.viewport.MapViewportState
2323import com.mapbox.maps.plugin.animation.MapAnimationOptions
@@ -66,9 +66,12 @@ fun SearchScreen(
6666 searchEngine.search(
6767 newQuery,
6868 SearchOptions (
69- // Coorindates to Toronto's Distillery District
70- proximity = Point .fromLngLat(- 79.35954 , 43.65050 ),
69+ // proximity = Point.fromLngLat(-79.35954, 43.65050),
7170 limit = 10 ,
71+ // boundingBox = BoundingBox.fromPoints(
72+ // Point.fromLngLat(-79.49555, 43.60698),
73+ // Point.fromLngLat(-79.29422, 43.75953)
74+ // )
7275 ),
7376 callback = object : SearchSuggestionsCallback {
7477 override fun onSuggestions (
@@ -237,6 +240,4 @@ fun handleSuggestionSelection(
237240 Log .e(" Search" , " Selection error" , e)
238241 }
239242 })
240- }
241-
242-
243+ }
0 commit comments