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

Unable to generate build with pro guard enabled using Mapbox SDK 6.7

Mapbox SDK: 6.7.0 After enabling the proguard in the gradle, we are getting the following error. com.mapbox.services.android.location.LostLocationEngine: can't find superclass or interface…
abhishek maharajpet
  • 482
  • 1
  • 4
  • 18
1
vote
0 answers

java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex || Android

** While runing the code I encounter this error "Unable to merge dex || Android in the android studio This is basically use of map in the android application** This is the Build.gradle code android { compileSdkVersion 26 defaultConfig { …
1
vote
1 answer

Getting timeout error while trying to download offline region in Mapbox

Timeout error is thrown every time when I try to download an offline area. The reference for my implementation is in the following link below: Link to offline manager Also the "onError(OfflineRegionError error)" method from the observer keeps on…
abhishek maharajpet
  • 482
  • 1
  • 4
  • 18
1
vote
1 answer

Mapbox: Gradle sync failed with DexArchiveMergerException

I am integrating the dependencies for the mapbox-sdk into my gradle build files and run into the error that I have duplicates in my dependency tree. How can I exclude the necessary dependencies? dependencies { implementation fileTree(dir:…
Alica
  • 107
  • 2
  • 9
1
vote
1 answer

Mapbox - Reverse Geocoding - multiple language response

I'm using Mapbox to Reverse geocode a latitude, longitude location and wanted the city name(Place name) response with multiple languages. The documentation says, 'If more than one language tag is supplied, text in all requested languages will be…
Badhrinath Canessane
  • 3,408
  • 2
  • 24
  • 38
1
vote
1 answer

While user tracking is on zoom on user location

I am using the version of mapbox-android-sdk and mapbox-android-plugin-locationlayer // Mapbox implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:6.6.1' implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-locationlayer:0.11.0' One…
Mehdi Karamosly
  • 5,388
  • 2
  • 32
  • 50
1
vote
1 answer

How to control the z axis of individual Mapbox features inside the same layer?

I'm using the Mapbox Maps SDK for Android to display pins with custom icons in a map on my app. More specifically, I'm using the SymbolLayer API. When the user clicks on a pin, its appearance changes to show it is selected. However, that clicked pin…
Mateus Gondim
  • 5,362
  • 6
  • 31
  • 51
1
vote
0 answers

Animating a Polyline in Android-Mapbox

I'm trying to animate a Polyline on MapboxMap using ValueAnimator. I've found many solutions but those were on google maps, and tried to implements the logic but no luck, here is the code I've written so far: public static void addHistoryLine(final…
Yasir Ghafar
  • 110
  • 8
1
vote
2 answers

how do i implement android mapbox android sdk successfully in fragment

I am using mapbox in a fragment with bottom navigation, when i exit and resume the app or when i change tabs rapidly, the app crashes. this is the error i get 10-07 22:20:36.046 21867-21886/com.dropexpress.driver.dropexpressdriver E/Mbgl-FileSource:…
Benjamin Gakami
  • 1,610
  • 2
  • 16
  • 22
1
vote
1 answer

MapBox Android - issue to find equivalent expression when migrating from 5.1.5 to 6.5.0

I'm updating an application working with MapBox (migrating from 5.1.5 to 6.5.0). Now, everything works fine (with LocationEngine CompassEngine, new class/package naming, etc.) but I'm facing an issue to find the equivalent expression (in 5.1.5)…
sokarcreative
  • 536
  • 7
  • 18
1
vote
2 answers

How can I resolve this Failed to resolve: com.mapbox.navigator:mapbox-navigation-native:3.1.3?

I am experiencing a problem with mapbox-android-navigation: Failed to resolve: com.mapbox.navigator:mapbox-navigation-native:3.1.3 | MAPBOX** dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation…
1
vote
1 answer

How to rotate MapView in MapBox GL?

I want to rotate my activity with MapView without configuration change, relying on sensors. So I need to somehow set rotation to whole map wiew, so compass and watermark will be placed correctly. But after mapView.rotation(angle) it became stretched…
Nikita Unkovsky
  • 631
  • 1
  • 7
  • 13
1
vote
0 answers

Mapbox does not provide current location in devices that does not support Google play service

I have tried fetching location from Mapbox using the LocationLayerplugin, but it does not seem to work in devices that does not support Google Play Services. It works fine in devices that support play services. Are we blocked to use location…
abhishek maharajpet
  • 482
  • 1
  • 4
  • 18
1
vote
1 answer

How to zoom to nearest area on Mapbox?

This is my code to display a marker pintpointing my current location on the map. activity_main.xml
anta40
  • 6,511
  • 7
  • 46
  • 73
1
vote
0 answers

React native app gets crashed whenever I'm using mapbox

Hey can anyone help me with react-native and mapbox? Whenever I'm running the command react-native run-android it first starts the app and immediately the app gets crashed