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

Custom MapBox Android Renderer - crash when change tabs

I am trying to create a MapBox Renderer for Android in Xamarin Forms using the naxam library. The map is displaying well as a content of a view in a tab, however when I change tab several times it crashes on the android emulator. I suppose the…
1
vote
1 answer

Gradle Fails to implement com.mapbox.maps:android:10.2.0

I need to import import com.mapbox.maps.plugin.annotation.generated.PointAnnotationOptions; in my app code, for that I need to implement com.mapbox.maps:android:10.2.0 in build.gradle module, but it fails. Could someone tell me, why this gradle…
Khkhy
  • 142
  • 2
  • 10
1
vote
1 answer

Can't pass token from gradle.properties to settings.gradle

I followed the guide at https://docs.mapbox.com/android/maps/guides/install/ and everything seems to work except that I can't pick the token stored in gradle.properties to authenticate myself on the Mapbox Maven repository in settings.gradle. The…
1
vote
1 answer

Animate the Mapbox Camera in v10

In mapbox v9 I could animate the camera using the animatecamera method. In mapbox v10 it says to use flyTo or easeTo. However none of these methods exist in the mapboxMap object? mapView = findViewById(R.id.mapView) mapboxMap =…
Reafidy
  • 8,240
  • 5
  • 51
  • 83
1
vote
1 answer

I am trying to implement the mapbox_gl api in Flutter. How can I set mapbox access token as a system variable or environment variable

When I run the code below I'm getting errors in that nature **A problem occurred evaluating project ':mapbox_gl'. SDK Registry token is null. See README.md for more information.** I believe setting mapbox access token as global or environment…
1
vote
1 answer

Mapbox unresolved dependencies android SDK

I'm trying to make an android app with Mapbox SDK in android studio, and just to get familiar I am running through this tutorial. However I am getting dependency errors. Other posts have suggested flicking back to 9.5.0 but that has the same…
captaine77
  • 11
  • 1
1
vote
1 answer

How to convert JSON to DirectionsRoute

I'm developing a simple navigator with mapbox API for Android. I'm creating some routes using https://docs.mapbox.com/playground/directions/ playground and i would like to use the generated JSON to generate a DirectionsRoute object. So i call…
Xernakam
  • 25
  • 4
1
vote
1 answer

Mapbox NavigationView UI set Dark Mode with Route Color to Red

I have implemented latest Mapbox Library with Navigation UI as follow. implementation "com.mapbox.navigation:ui:1.5.1" implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.1' Link of documentation: Navigation SDK Map SDK What I have…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
1
vote
0 answers

Japanese label cannot be displayed on Mapbox

I'm developing an app that displays a map using Mapbox. I use the Flutter framework and mapbox_gl plugin. I created a Japanese label display style in MapBox Studio and specified the URL in the mapbox_gl plugin. But all the labels disappear. (English…
shige
  • 11
  • 1
  • 2
1
vote
4 answers

How to provide an authentication token to a tile provider with Mapbox Android SDK v10-beta20?

To get my tiles I do: style(styleUri = Style.MAPBOX_STREETS) { +vectorSource(id = "parcel-source") { url("http://example.com/{z}/{x}/{y}.png") } But I need to provide a token to a tile provider, with an HTTP header like Authorization:…
Jérôme Pietri
  • 187
  • 1
  • 11
1
vote
2 answers

Mapbox SDK for android doesn't install properly

I'm new in programing and i want to create a map app, so I'm trying to install the Mapbox SDK in android studio (Kotlin), I've followed the installation guide step by step (https://docs.mapbox.com/android/maps/guides/install/), but it doesnt'n…
ARIELCHC
  • 11
  • 1
1
vote
1 answer

Add Marker with text on Mapbox

We want to achieve UI like the below image in our application. We are using Mapbox SDK for showing map and geojson to draw the polyline. we have drawn the polyline using geojson on Mapbox but the question is how to show the marker points with the…
1
vote
0 answers

Android GC concerns

Im on the newer side to Android development and my app is experiencing some severe lag on the main thread. Would these GC calls have anything to do with it? or is this a normal thing to see. I/tific.driverap: Background concurrent copying GC freed…
justin018
  • 117
  • 1
  • 2
  • 10
1
vote
1 answer

Mapbox sdk with androidx?

After adding all dependencies according to https://docs.mapbox.com/android/maps/guides/install/ , when I tried to run application this error occurred : Sync error : Failed to resolve: legacy-support-core-utils-1.0.0 Affected Modules: app Build…
Mehdi bahmanpour
  • 574
  • 7
  • 21
1
vote
0 answers

iOS Mapbox clustering by specific set of properties

The issue we are tackling is that we need to add some filtering on the cluster by a specific attribute for all objects in a cluster. The code before that demand is: // Create style layer to cluster features as images with labels let…
Erez
  • 1,933
  • 5
  • 29
  • 56