Category : mapbox

I am trying to implement a code in kotlin which displays an image in my case a button has a given position (I use mapBox) I managed to display my button using a SymbolLayer at a given position, however I cannot implement the listener of this SymbolLayer fun displayButton(lat: Double, lng: Double) { if (button ..

Read more

how can I get the Distance out of Mapbox Navigation Route? in Double Format, I don’t want to draw the route I just need to calculate the distance between two Points, I have been able to calculate the distance using Truf Storelocation = Point.fromLngLat(Stores.latitude, Stores.longitude) Userlocation = Point.fromLngLat(UserLocation.Latitude, UserLocation.Longitude) Distance = TurfMeasurement.distance(Storelocation, Userlocation, TurfConstants.UNIT_KILOMETERS) but ..

Read more

I am implementing the mapbox maps and the mapbox navigation by using these imports: implementation ‘com.mapbox.mapboxsdk:mapbox-android-sdk:9.5.0’ implementation ‘com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.42.6’ I have map with a self made map style, from which I select a destination location and launch the navigation activity. button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { boolean simulateRoute = false; NavigationLauncherOptions options = ..

Read more