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
0
votes
1 answer

Is it possible to add a line/circle/polygon layer in Mapbox Gl Native (Android) using the style specification?

In MapBox-GL-JS you can easily draw figures on a map with the addLayer() method by passing it a JSON object that adheres to the Mapbox style specification. This is super convenient and easy. For example see the map.addLayer() call here: How to add a…
Yermo Lamers
  • 1,911
  • 14
  • 25
0
votes
1 answer

using mapbox in android studio with function

I use MapBox in android studio and show a point in map. Now I want to have a function to get a LatLng variable as an input and show that point on the map.(I want to have a function outside of onMapReady, which, with the call of the function, send…
Reza Dehghani
  • 15
  • 1
  • 6
0
votes
1 answer

How to show a callout on the map dynamically?

I am following this example: https://docs.mapbox.com/android/maps/examples/symbol-layer-info-window/ Also…
thstart
  • 397
  • 3
  • 15
0
votes
1 answer

Mapbox traffic plugin bug

I init mapbox traffic plugin in onMapReady but when I want to set visible to true in hamburger menu there is no traffic on map and I call trafficPlugin.setVisibility(true) if I call it from onMapReady it works, but in hamurger menu I have toggle…
kacerac
  • 93
  • 9
0
votes
1 answer

How to detect expired authentication token with Mapbox SDK?

I'm using Android Mapbox SDK 7.0.0 and I give the SDK an authentication token with the given method: Mapbox.getInstance(applicationContext, mapboxToken) My authentication token, mapboxToken, is working fine and the map is displayed. But, how to…
Antoine44
  • 11
  • 3
0
votes
1 answer

Mapbox : How to animate Polygon transformation

Its pretty simple to transform a Point feature from one to another like this : But I am facing a usecase that needs to animate polygon feature from one state to another, sometimes the polygons (old and new) can have different number of vertices…
erluxman
  • 18,155
  • 20
  • 92
  • 126
0
votes
0 answers

Mapbox android load Time based tiles

I have a time based tile server with radar data. I want to show this in mapbox. The only way I get this working is this. Remove Source and layer and create a new source and layer. mapboxMap.RemoveLayer("layer"); mapboxMap.RemoveSource("source"); …
0
votes
2 answers

Mapbox Navigation Off Route Detection not working

I'm trying to test off route detection in mapbox navigation and it is not working. I've traced through and the OffRouteDetector.isUserOffRouteWith is getting called, but the status.getRouteState() is only ever returning "INITIALIZED" (which is not…
Troy Berg
  • 201
  • 2
  • 10
0
votes
1 answer

How to add Label ( ex: 1,2,3..) to marker icon in mapbox in android

How to add label into mapbox marker icon (not the infoWindow) in android studio. here is the Example of the marker
0
votes
1 answer

Mapbox SDK - onMilestoneEvent won't trigger at all+can't setup custom milestone

I'm having troubles trying to setup a listener for Milestone events with a custom Milestone. I followed the instructions on the documentation but the code inside the Milestone event does not seem to fire at all. My goal is to get a…
NoveB
  • 11
  • 3
0
votes
0 answers

Bottom Navigation View covers MapboxMap - Android

I've tried a number of different things but can't get anything to fix this! No matter what I try, the map spills over to fill the whole screen, causing the nav bar to cover the attribution / bottom section of the map. I thought it might be because I…
Jake Madden
  • 237
  • 2
  • 11
0
votes
2 answers

Adding coordinate in Mapbox Android

I'm working with mapbox android, i'm trying to add multiple waypoints between origin and destination.but after adding one waypoint when it's adding another one this gives the exception " Too many coordinate the s; maximum number of coordinates is…
Alik
  • 1
  • 1
0
votes
1 answer

How to Rotate Mapbox View according to direction in android

I'm using MapBox latest lib (0.22.0). I'm trying to rotate the map to always face the direction we are moving towards to with MapBox Android. This is my code: @Override public void onMapReady(MapboxMap mapboxMap) { this.mapboxmap = mapboxMap; …
0
votes
1 answer

Mapbox crash when rapidly switching between fragments

When rapidly switching between my map-fragment and any other fragment "Fatal signal 11 (SIGSEGV)" occurs and the app crashes. I have read that this error is related to a library function issue and I am guessing it has something to do with the…
0
votes
0 answers

How to dissolve a cluster in MAPBOX on click?

I have made a cluster similar to this https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/dds/ImageClusteringActivity.java And i want to get the cluster to get dissolved…