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

Animate a polyline with mapbox

there is a way I can animate a polyline on mapbox with java ? I see a lot of example on other languages like objc and javascript but not android, can anyone help me with this
PrinceZee
  • 1,587
  • 3
  • 11
  • 24
3
votes
1 answer

Get all features from a GeoJsonSource

I want to get all features from a GeoJsonSource, my code is: GeoJsonSource geoJsonSource = new GeoJsonSource("source", loadJsonFromRaw()); for (Feature feature : geoJsonSource.querySourceFeatures(null)) { Log.d(TAG, "onMapReady: " +…
Norutan
  • 1,480
  • 2
  • 14
  • 27
2
votes
2 answers

How to integrate Mapbox Map SDK in Flutter?

I'm a beginner Flutter developer and was trying to integrate Mapbox SDK to Flutter. I used the official doc from Mapbox for android and did everything , but still the map isn't working. offical doc this was my error: FAILURE: Build failed with an…
2
votes
0 answers

Memory leak in Jetpack Compose - Mapbox

Mapbox in Jetpack Compose takes up a lot of RAM. When I open the view that contains the map, the memory takes more and more each time I go into that view. How can I destroy the memory When I left the view? AndroidView(modifier =…
2
votes
1 answer

Calculate distance point to line

I'm using Mapbox for Android Java and need to calculate the distance between a drawn line defined by start and endpoint to the users current location. Any idea on how to implement that with mapbox?
patpatwithhat
  • 335
  • 2
  • 11
2
votes
0 answers

Could not find method compile() for arguments [com.mapbox.mapboxsdk:mapbox-android-telemetry:6.1.0]

I'm trying to implement mapbox in my nativiscript app using @nativescript-community/ui-mapbox plugin. With regard to the documentation, it should be added : to…
Gedeon Mutshipayi
  • 2,871
  • 3
  • 21
  • 42
2
votes
2 answers

How do I disable gestures in Mapbox v10.0?

The guide mentions disabling User Interactions for Kotlin here. mapView = findViewById(R.id.mapView) mapboxMap = mapView.getMapboxMap() mapboxMap.gestures(); //Method not found?? I don't know how to code in Kotlin. I can't work it around to work…
karatuno
  • 365
  • 5
  • 18
2
votes
2 answers

Failed to resolve: com.mapbox.maps:android:10.0.0

I have set up a new project on Android Studio and I'm trying to use v10 of Mapbox SDK. However, my Gradle build fails with the message: Failed to resolve: com.mapbox.maps:android:10.0.0. Can someone help me out? How do I correctly import the v10…
Istorian
  • 43
  • 8
2
votes
0 answers

onCameraIdleListener equivalent in Android v10 SDK

I have an expensive operation I want to run only when the camera is idle. I am using the Mapbox v10-rc.5 SDK on Android. With the Google Maps SDK, I can set up an onCameraIdleListener, and I see that there was a similar thing in previous versions…
Andrew Kirmse
  • 53
  • 1
  • 4
2
votes
1 answer

Could not resolve com.mapbox.navigator:mapbox-navigation-native:7.0.0

After updating android studio 4.2 distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-bin.zip got this error Could not resolve com.mapbox.navigator:mapbox-navigation-native:7.0.0 Could not resolve…
2
votes
1 answer

GeoTiff style layers shows up with black borders in Android

We uploaded a set of "floor plans" to Mapbox in GeoTiff format. While layers show up fine in Mapbox Studio, the layers appear to have a huge black background surrounding it's rendered area. This is how it looks in Studio And this is how it appears…
2
votes
0 answers

Display multiple routes in mapbox

I am trying to display multiple routes in mapbox,I also enabled alternative to true still multiple routes are not displayed,would like to plot multiple routes on a map. However, this is not working.Is there any ways to display multiple routes in…
2
votes
0 answers

MapBox Snap Map Cities boundaries update for SnapChat

I would like to know how we can contact Mapbox team to correct cities boundaries that are not correctly defined. We tried in Snap Map settings MapBox option but that redirects to their main website. Also we found its using openstreetmap and we…
Hitesh
  • 41
  • 1
2
votes
0 answers

Is there a PixiOverlay alternative for mapbox?

I'm developing 3 map-based apps - the first one is a web app (using React.js) and the others are Android and iOS apps (using mapbox). I'm using Leaflet library with mapbox tiles for the web app, and therefore we enjoy the plugins that Leaflet offers…
2
votes
2 answers

React Native MabBox MarkerView issue

I am working on a project where i need to show at least 10 to 20 markers on a map at a time. Project is ejected from expo and as Google Map is paid i am using MapBox. To add map in react native i am using @react-native-mapbox-gl/maps": "^8.1.0-rc.9,…