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
2
votes
2 answers

Can I inflate a view replacing the icon in mapbox android?

When adding markers in mapbox, there is a provision to add custom icon to the marker. I wonder whether we can inflate a view(R.layout file) instead of assigning a drawable icon. Here is the code:- public void onMapReady(MapboxMap mapboxMap) { …
Aadhil Ahmed
  • 111
  • 15
2
votes
0 answers

Unable to load the layers in Mapbox because of API GET request error

I have tried to develop a webmapping interface which will enable me to select the the base map style which will also add the call center employee population to the map. It will be in the form of graduate symbols, where larger the circle means more…
2
votes
1 answer

Drawing circle using Mapbox SDK in Android

I currently have a LatLng position and a radius in km or miles. How do I draw a circle (using CircleLayer or any other method) onto the map using the Mapbox Android SDK?
Aadhil Ahmed
  • 111
  • 15
2
votes
1 answer

Mapbox Navigation ui

Can anyone please let me know how can i import the gradle for (libandroid-navigation-ui), as I am facing in adding the module. What is the gradle for this, I already tried compile 'com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.5.0' but no…
Android Guy
  • 573
  • 1
  • 8
  • 18
2
votes
1 answer

Mapbox - Navigating a custom route (turn-by-turn)

I've been exploring the Mapbox Map SDK and the Navigation SDK and have hit a brick wall so any help would be appreciated. I have a few routes defined in GeoJSON. Is it possible to feed this custom route in GeoJSON into the Navigation SDK and get…
Francis Kim
  • 4,235
  • 4
  • 36
  • 51
2
votes
0 answers

Android Mapbox : How to Load tiles from sd card of the mobile[offline]

I am new to mapbox android.I am able to place tiles from json. But How can i load tiles from internal storage/SD card of the mobile. I am using below code for local storage - which is not working RasterSource chicagoSource = new…
madhu527
  • 4,644
  • 1
  • 28
  • 29
1
vote
0 answers

Two Vector Tilesets with Mapbox Android SDK

I am using Mapbox SDK for Android (Mapbox SDK version 9.x.x), and I am trying to use two vector tilesets at the same time. Idea was to add each vector tileset as a separate layer, similarly as it can be done with raster tilesets, but it looks…
SadClown
  • 648
  • 8
  • 16
1
vote
1 answer

How do I add geojsonsource to mapbox android sdk using java?

As the subject says. I've got how to do it in Kotlin: fun addGeoJsonPolygonToMap(geoPoints: Array,id: String, fillColor: String, Opacity: Double, fontSize: Double){ val mutableList : MutableList = ArrayList() …
freshsmoe
  • 179
  • 1
  • 14
1
vote
1 answer

Adding a FillExtrusionLayer to a Mapbox Map in Android using Mapbox SDK v10.12.2

I am attempting to create a 3D Map in Android and having issues utilizing the correct style.addStyle(fillExtrusionLayer);. I have looked at the documentation to no avail. Any help would be appreciated. Documentation:…
MSD
  • 87
  • 2
  • 5
  • 14
1
vote
1 answer

Fix dependency resolution errors. getting this errors after adding mapbox_gl and its sdk

app\buid.gradle def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterRoot =…
tis eyat
  • 37
  • 3
1
vote
1 answer

Specify elevation for annotations in mapbox

I have different annotations (with icons) which sometimes overlap in the map. Is there any way to specify the elevation of the annotations to have some annotations always displayed over the others? As of right now it looks like there is no rule on…
lkuebler
  • 11
  • 1
1
vote
0 answers

How can i add a click event to a circle layer in mapbox android?

I've created a circle layer in a mapbox. I can add an event to the annotations, but how can i add a event click in my circle layer and get the information from each particular point ? I want to be able to click on the circle and then get the…
1
vote
0 answers

How to take screen shot of mapbox and send it to fragment?

I have been working on a Mapbox based Android app. One is the step is to take a screenshot of the map-mostly surrounding the area of the location Pin dropped by the user-and show that onto the fragment which opens once the location pin is dropped on…
Nirmal Purohit
  • 67
  • 1
  • 4
  • 12
1
vote
0 answers

Mapbox - Failed to resolve tileset descriptors: Loading request canceled

I have the following code for download map regions. This function is called on multiple regions asynchronously. In debug/development mode I rarely get this error. But in production release app I get this issue sometimes and the whole offline user…
Waleed
  • 1,097
  • 18
  • 45
1
vote
0 answers

How to compile Mapbox Android Events Repository Project? Unauthorized response for sdk-registry

Based on an critical API change by android API Level 31 (refer to this thread click here) we need to fix some lines in libtelemetry/libcore of the following repository: https://github.com/mapbox/mapbox-events-android. Therefore we want to compile…
user2463728
  • 309
  • 3
  • 12