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

Could not find mapbox vision sdk dependencies

I try to set up the Mapbox vision sample app (https://github.com/mapbox/mapbox-vision-android), but not able to test the Mapbox Vision SDK sample app. Dependency files are not downloading due to the Forbidden error. Error : Could not GET…
4
votes
3 answers

Could not find com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0

I have created the account and key needed from Mapbox. I have listed the repositories in different order with no luck. Whn building, the following error appears: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not…
Morgs
  • 65
  • 7
4
votes
2 answers

Mapbox SDK Registry Token is null

I'm experiencing issues installing mapbox_gl plugin on my flutter app... I did follow the official instrctions from there : https://pub.dev/packages/mapbox_gl But whenever I hit flutter run I get the same message : SDK Registry token is null. See…
Brice Le Roux
  • 83
  • 1
  • 8
4
votes
2 answers

How to import a map style template from mapbox to flutter using flutter_map?

I'm trying to add a map in my flutter app through flutter_map package. I tried to import this mapbox style :…
Ramesh Dalvi
  • 51
  • 1
  • 4
4
votes
1 answer

Mapbox Android : Adjust Opacity of background layer

I'm searching the way to adjust the opacity of the mapbox map. In the following example, layers[0] refers to the background layer. mapboxMap.style!!.layers[0]?.setProperties(rasterOpacity(0.3f)) Applying this code has no effect. What is wrong ?
wawanopoulos
  • 9,614
  • 31
  • 111
  • 166
4
votes
3 answers

Mapbox IllegalStateException: Calling getSourceAs when a newer style is loading/has loaded

I'm getting the following error during my mapView.getMapAsync{} call: 2019-10-03 19:37:57.605 10964-10964/my.app E/AndroidRuntime: FATAL EXCEPTION: main Process: my.app, PID: 10964 java.lang.IllegalStateException: Calling getSourceAs when a…
Zorgan
  • 8,227
  • 23
  • 106
  • 207
4
votes
2 answers

CannotAddSourceException with Mapbox on Android

I am getting an exception when I try to add a source to a Mapbox map on Android even if I delete every source with the same name before. I have tries to delete source then layer or layer then source and nothing worked. if (map != null){ …
4
votes
1 answer

Rotate and change position for markers in latest MapBox SDK 6.7

Mapbox Android SDK: 6.7.0 The requirement in the application we are developing is that we have to add multiple markers in different LatLng positions and also rotate them with some bearing. In the old mapbox version(4.2.1), we could do it without any…
abhishek maharajpet
  • 482
  • 1
  • 4
  • 18
4
votes
0 answers

How to programmatically clone a layer of MapBox?

I'm loading a style with an existing CircleLayer and I'd like to programmatically add another such layer with similar styling (say, same except different color). Its geo data will be created programatically as well. I could not find an easy API for…
akoprowski
  • 3,297
  • 1
  • 18
  • 26
3
votes
1 answer

Mapbox symbol layer's `.iconColor()` does not set icon color

After retrieving the poi-label symbol layer, I am trying to set the color of all icons from green to red. I do this with the following code: map.loadStyleUri(context.getString(R.string.mapbox_style)) { style -> …
Kes Walker
  • 1,154
  • 2
  • 10
  • 24
3
votes
0 answers

How can I download tile region map(mapbox) completely, with kotlin code in android studio?

With following offline Mapbox docs, I defined tileStore, resourceOptions, offlineManager and tilesetDescriptor same as codes below. private val tileStore: TileStore by lazy {TileStore.create().also{it.setOption(TileStoreOptions .MAPBOX_ACCESS_TOKEN,…
3
votes
1 answer

How to handle activity lifecycle events for Mapbox Map in Jetpack Compose?

in the official documentation for Mapbox SDK for android there is a simple example of map using standard UI library for Android. Full documentation for completeness of the question can be found here. The code mentioned there is like this: private…
3
votes
1 answer

Cannot resolve com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0 in one project, but in the other can?

I have 2 projects which have the same gradle settings regarding the mapbox in general and one of them works completely fine and the other does not work at all the error which gets written into logs within the build time is pretty known: > Could not…
RickertBrandsen
  • 201
  • 4
  • 15
3
votes
2 answers

Duplicate class com.mapbox.android.telemetry.AlarmReceiver found in modules. Mapbox Android studio

I am studying the examples in mapbox in android studio but when I run the code it shows FAILURE: Build failed with an exception. Execution failed for task ':app:checkDebugDuplicateClasses'. A failure occurred while executing…
3
votes
2 answers

How to create Mapbox hotspots and heatmap from lat-long list in Android?

I have a database table containing lat-long data that I need to show as hotspots or as a heatmap on a Mapbox map. I've checked out the official examples for hotspots and heatmaps, but they are both loading their data from a URL (in geojson…
ban-geoengineering
  • 18,324
  • 27
  • 171
  • 253
1
2
3
37 38