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
0 answers

How to create a Observable from a LocationEngineProvider from MapBox?

In my Activity, I initialize the localion engine: LocationEngineProvider locationEngineProvider = new LocationEngineProvider(this); locationEngine = locationEngineProvider.obtainBestLocationEngineAvailable(); …
user3450862
  • 379
  • 1
  • 6
  • 22
1
vote
1 answer

How can I zoom on a routes

what is the better way for zoom the map to show all the route after getting it? I tried to do it with my Origin and Destination, but not working well if the route go over or down those.
JFDionne
  • 125
  • 7
1
vote
1 answer

How to move multiple markers simultaneously

I have developed an android application which shows the near by vehicles for which latlng will be saved to server on locationchanged which will be the jsonarray result from which i will be able to add the markers on mapbox map through animation i am…
beetle
  • 11
  • 4
1
vote
0 answers

How to detect the direction of a suggested route in MapBox Directions API?

I am working on a project where I create an app that will direct users through a college campus using AR (Much like the one shown here: https://www.youtube.com/watch?v=vRmTn25xm7Q (7:20)). I am starting off with the Navigation API for Android from…
1
vote
1 answer

Mapbox SymbolLayer hides markers

I use symbol layer to draw bunch of points on the map : var imgId = R.drawable.ic_route_stop var featureCollection = FeatureCollection.fromFeatures(mSelectedBusStops!!.map { stop -> …
Nininea
  • 2,671
  • 6
  • 31
  • 57
1
vote
1 answer

MapBox - Define PropertyFactory.iconImage using expressions

I am trying to define the value for the method PropertyFactory.iconImage for my layer object. The return value PropertyValue should use a certain field inside the Feature to define it's value. The result could look something like…
Mordag
  • 487
  • 7
  • 20
1
vote
0 answers

How to Launch mapbox Navigation-ui?

I am working in Mapbox sdk, I integrated the sdk and i can show the current location and drop pin on touching the map. But when i call for navigation route it giving me a error message "Unable to place request on backend". Any body know why it…
Munavvar
  • 11
  • 6
1
vote
0 answers

How to add multiple layers on Mapbox Android?

Right now I have three layers on my app and have a button for each of them. Each of the button toggles the designated layer, so when you want to show or hide the layer, you just need to click the button. However, this can be super inefficient and…
fairlyMinty
  • 413
  • 8
  • 22
1
vote
1 answer

Add a self hosted vector tiles to and android mapbox

I'm trying to display a custom vector layer on a map using Mapbox in my Android application. Using the latest mapbox version. When I include the layer the following way : //DOES NOT WORK binding.mapView.getMapAsync(mapboxMap -> { map =…
PhilippeAuriach
  • 2,418
  • 2
  • 22
  • 41
1
vote
1 answer

How do I colorize an image in Mapbox SymbolLayer?

I'm using Mapbox to render some Point GeoJSON data. How do I colorize an icon using SymbolLayer on Android? This seems to be causing a lot of trouble to others as well. This question is exactly mine:…
jervine10
  • 3,039
  • 22
  • 35
1
vote
0 answers

How to debug mapbox crash

I have a redundant crash with mapbox library com.mapbox.mapboxsdk:mapbox-android-sdk:6.1.1 On the logcat I got this stack: pid: 4960, tid: 4960, name: [...] >>> [...] <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 r0 00000000 r1…
Antoine44
  • 11
  • 3
1
vote
1 answer

MapBox SDK - [ParseStyle]: Failed to parse style: 0 - Invalid value.

I have implemented a owned map server from OpenMapTiles Map Server My intention is to use the MapBox SDK with the maps of my server. Apply the "Dark Matter" style using the following TileJSON 2.0 specification: By using the setStyleJson method of…
Sergio Sánchez Sánchez
  • 1,694
  • 3
  • 28
  • 48
1
vote
0 answers

Styled map freeze Android Mapbox 6.1.1

Im getting a screen freeze when using a styled map built using mapbox studio. The only thing we did in the styled map is add another layer. We tested already running the map using the default style, and there is no problem, the custom-styled map…
Hohenheim
  • 393
  • 2
  • 16
1
vote
0 answers

How to make a marker on a map semitransparent?

I have a map from MapBox and I draw custom markers on the map which are circle images. When the user selects one I want the other markers to become semitransparent. I use MarkerOptions class to position my marker on the map but this class does not…
Renat Kaitmazov
  • 245
  • 3
  • 10
1
vote
1 answer

Screenshot of Mapbox map without displaying it

I need to display a few previews of addresses on the map on the same screen. To do that I'm going to display ImageViews with bitmaps instead of making multiple instances of MapView. But for that I need to find a way to capture these bitmaps. I found…
fdermishin
  • 3,519
  • 3
  • 24
  • 45