Skip to content

Commit

Permalink
[MainActivity] align with main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
globaltrouble committed Sep 18, 2024
1 parent 7d9b11a commit 92b525b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ import com.mapbox.search.ui.view.place.SearchPlace
import com.mapbox.search.ui.view.place.SearchPlaceBottomSheetView
import com.mapbox.turf.TurfConstants
import com.mapbox.turf.TurfTransformation
import java.net.URI

class MainActivity : AppCompatActivity() {

Expand Down Expand Up @@ -206,12 +205,11 @@ class MainActivity : AppCompatActivity() {

val offlineSearchEngine = OfflineSearchEngine.create(
OfflineSearchEngineSettings(
tileStore = tileStore,
tilesBaseUri = URI.create("https://search-sdk-offline-staging.tilestream.net")
tileStore = tileStore
)
)

val descriptors = listOf(OfflineSearchEngine.createTilesetDescriptor(dataset="experimental-poi-cat-alias"))
val descriptors = listOf(OfflineSearchEngine.createTilesetDescriptor())
val dcLocation = Point.fromLngLat(-77.0339911055176, 38.899920004207516)
val tileGeometry = TurfTransformation.circle(dcLocation, 20.0, 32, TurfConstants.UNIT_KILOMETERS)

Expand Down Expand Up @@ -241,7 +239,7 @@ class MainActivity : AppCompatActivity() {
offlineSearchEngine = offlineSearchEngine,
)

searchEngineUiAdapter.searchMode = SearchMode.OFFLINE
searchEngineUiAdapter.searchMode = SearchMode.AUTO

searchEngineUiAdapter.addSearchListener(object : SearchEngineUiAdapter.SearchListener {

Expand Down

0 comments on commit 92b525b

Please sign in to comment.