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

I'm using NavigationView on a embedded layout, I'm trying to transfert the layout to another layout bu it crash

I'm trying to use the NavigationView on a embedded layout and trying to "move" the layout to another contentview, but it crash has soon I remove the View from the parent with: Attempt to invoke virtual method 'void…
JFDionne
  • 125
  • 7
1
vote
1 answer

Changing SymbolLayer properties on click when using a VectorSource

I've been following this guide provided by Mapbox to familiarize myself with SymbolLayers and how to manipulate their properties on the map. https://blog.mapbox.com/a-guide-to-the-android-symbollayer-api-5daac7b66f2c The key step I'm having issues…
amazeng
  • 11
  • 2
1
vote
1 answer

Androidx :ERROR: Failed to resolve: legacy-support-core-utils

i got this error when trying to migrate my android app to androidX with this implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:7.3.0' but it's ok with : implementation…
Mohammad Sommakia
  • 1,773
  • 3
  • 15
  • 48
1
vote
1 answer

How to add marker with different images in mapbox at runtime?

I have a problem, I want to add different images on a marker at runtime. I can basically add images in style and then I have to load the map to add a marker with a different image. This is how I add images in mapbox right now mapView.getMapAsync { …
1
vote
0 answers

Upgrading Jetpack Navigation causes compilation error to other libraries

I was trying to upgrade Jetpack Navigation (Plugins(safeargs) and libraries(fragment,UI,)) from android.arch.navigation:{library-name}:1.0.0-alpha06 To androidx.navigation:{library-name}:2.0.0 But it causes compilation error where imports from…
1
vote
1 answer

Unable to add Circle Layer Markers Clustering in Mapbox map Android

I am trying to add markers clustering feature in my android based app and I'm using this example: …
Haroon khan
  • 1,018
  • 2
  • 15
  • 27
1
vote
1 answer

How to show/hide icon for a SymbolLayer when clustering is triggered

I have two icon sets for a symbol-layer. I want one icon to be visible when a layer is not clustered and when cluster is triggered I want to show a different icon for the same layer. The problem I have is that the single icon is still visible…
Rob
  • 1,025
  • 7
  • 8
1
vote
3 answers

Mapbox Android Marker deprecated API 21+

Android studio tell me, that the markers in Mapbox are deprecated (API level 21+, mapbox-android-sdk:7.2.0). But in the official documentation the example is: mapboxMap.addMarker(new MarkerOptions() .position(new LatLng(48.85819,…
Spongi
  • 501
  • 3
  • 10
  • 19
1
vote
2 answers

How can I change the location of a MapBox symbol when the user taps the map?

I have a map with a symbol on it, that I introduce using this following code: symbolOptions = SymbolOptions() .withLatLng(LatLng(localImageObject.locationLat, localImageObject.locationLong)) .withIconImage(DERE_PIN) …
Tsabary
  • 3,119
  • 2
  • 24
  • 66
1
vote
0 answers

Mapbox Android Annotations Plugin for Android

I have had some experience with Mapbox maps for android, handling various annotations such as Markers, Polylines etc. However, with the new API v7, Mapbox encourages developers to use the new Annotations Plugin because the previous annotations…
1
vote
1 answer

Mapbox map only semi responds to panning gestures

I have implements a mapbox MapView. It appears on screen just fine, but when I try to pan the map around, it kinds moves a few pixels on the screen in the direction I intended and then it stop while my finger is still sliding. Sometimes that would…
Tsabary
  • 3,119
  • 2
  • 24
  • 66
1
vote
2 answers

Instantiating MapBox before inflating the fragment layout cause Exception

I'm following MabBox tutorial at https://docs.mapbox.com/help/tutorials/android-navigation-sdk/ to make a simple navigation fragment that use the basics elements of it. I already know that MapBox require to instantiate before inflating the View…
1
vote
0 answers

Offline sideloading with Mapbox

So I'm trying to use the Mapbox SDK in an offline mode by merging tiles in a local DB file I created from my own tile server by using ./mbgl-offline --north [north coordinate] --west [west coordinate] --south [south coordinate] --east [east…
kitsuneFox
  • 1,243
  • 3
  • 18
  • 31
1
vote
0 answers

MapBox Symbol doesn't act like markers properly (clustering, click..)

I am trying to make moving cars on MapBox using new promising GL Symbol layer/source. It looks very nice both on android and ios, but I faced with two impossibilities. Symbols are always clustering. setIconAllowOverlap() and …
djdance
  • 3,110
  • 27
  • 33
1
vote
1 answer

Mapbox Navigation SDK, problem adding waypoints to a NavigationRoute.builder()

Currently i am trying to create a navigation route in the android navigation SDK provided by mapbox. The problem starts when adding more than one waypoint to the query. (the query below returns a response and draws the route on the map)…
Moto28
  • 45
  • 9