Questions tagged [mapbox-android]

Mapbox Android Services contains directions, geocoding, and many more APIs to use inside your Android or Java application

Available specific SDK Docs and Tags:

Maps SDK for Android -> mapbox-android-maps

Navigation SDK for Android -> mapbox-android-nav

Vision SDK for Android -> mapbox-android-vision

570 questions
1
vote
1 answer

Mapbox: Hide traversed route after maneuver

I am curious if it is possible to adjust the route after a maneuver like you can see in this video from the Mapbox website: https://www.mapbox.com/assets/use-cases-navigation-sdk-272b22ac06adc9a4275dcc13624112d8.mp4 Goal is to hide the route which…
egcram
  • 53
  • 5
1
vote
0 answers

How to customize Mapbox's NavigationView

I would like to implement my turn-by-turn navigation app with the help of Mapbox SDK. If I use their navigationView, its not really customizable, I can only set the colors. I tried to use MapView with MapBoxNavigation, but the route display is not…
Kiskunk
  • 73
  • 11
1
vote
0 answers

Show a panel on MapBox in Android

I use MapBox in Android and show some Points on it. Now I want to show a panel top-left of map and show some information in this panel. How can i do this? (An Example show in image in URL: https://docs.mapbox.com/help/img/directions/gljs-plugin.png…
Reza Dehghani
  • 15
  • 1
  • 6
1
vote
1 answer

MapboxMapMatching with more than 100 points

I need to draw my custom Route from a list of points using MapBox api. By default , MapboxMapMatching accept only 100 points but my list has more than 100 points. Any solution ?
Younes Ben Tlili
  • 263
  • 1
  • 2
  • 15
1
vote
1 answer

Aligning Mapbox text SymbolLayer with icon SymbolLayer

I'm presently working on clustering symbols on a Mapbox map using a method similar to this official example. When testing, I have found that the icons and text appear as expected, however the text layer appears to lose its alignment with the icon…
Tom Larcher
  • 661
  • 9
  • 24
1
vote
0 answers

Current location doesn't display immediately

I am using Mapbox Api with Android and I am trying to get the current position of the user but I can reach the current location only on closing the app and reopening it. I am using like dependencies : implementation…
Achref ArShavin
  • 219
  • 3
  • 10
1
vote
0 answers

Rotate a feature at runtime and update a layer

i have some objects on the map (lets say cars). These cars produce their own location and accordingly bearing updates. Whenever we get data-updates for objects we create new Feature feature = Feature.fromGeometry( …
Ben Win
  • 830
  • 8
  • 21
1
vote
2 answers

Android crash on 'boolean com.mapbox.mapboxsdk.maps.Style.isFullyLoaded()' on a null object reference,

Hi I am trying MapBox for navigation and getting crash like this 2019-01-20 19:00:16.331 32005-32005/com.example.mapboxtest E/Mbgl-MapChangeReceiver: Exception in onDidFinishLoadingStyle android.content.res.Resources$NotFoundException: Resource ID…
shine_joseph
  • 2,922
  • 4
  • 22
  • 44
1
vote
1 answer

Program type already present: com.mapbox.android.core.location.GoogleLocationEngine

I'm trying to use Mapbox together with google play services location. Everything worked fine until I added implementation 'com.google.android.gms:play-services-location:16.0.0' to be able to request location updates when app in background. Gradle…
113408
  • 3,364
  • 6
  • 27
  • 54
1
vote
1 answer

cancelNavigation button does not go back to mapView from navigationView

I currently managed to make the navigation work with NavigationView, and now i can set the route with mapView and then start the navigationView by pressing a button on the screen. The problem is when I want to get back to mapView by pressing the X…
NoveB
  • 11
  • 3
1
vote
0 answers

Mapbox how to show map labels to the language used locally for the place, and the map labels in English in the rest of map

I want to show the map labels in the language used locally for the place, and the map labels in English in the rest of world. I know this is the normal behaviour for Mapbox available language for example : in Germany labels are shown in German, and…
dvrm
  • 3,749
  • 4
  • 34
  • 43
1
vote
0 answers

Why does Mapbox on Android takes a long time to display user Location Dot

I am investigating the use of Mapbox on Android. implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:6.7.2' implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.24.1' implementation…
Hector
  • 4,016
  • 21
  • 112
  • 211
1
vote
1 answer

Added marker is not visible - Mapbox 6.7.0

While trying to add marker to mapbox using symbol layer, the marker was not visible. Tried to add marker as shown below, mapView.getMapAsync(m -> { isMapReady = true; mapboxMap = m; …
Lloyd Dcosta
  • 289
  • 2
  • 11
1
vote
0 answers

Get geoJSON parameter from Mapbox Layer - android

I followed the Mapbox Android tutorial to draw Polygons with geoJSON: https://www.mapbox.com/android-docs/maps/overview/data-driven-styling/#geojson It works, but I thought that I could not call "the Polygon's id" in geoJSON from a layer. I want to…
1
vote
0 answers

Espresso & Mapbox IdlingResource : need advice

I am looking for some advices in order to create an idling resource to make my espresso tests wait when the map is not idling. During tests, we have a lot of camera movements, zooms etc so a lot of tiles are downloaded and old devices are quite…
MrAurelien
  • 358
  • 2
  • 11