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 set the heading of the devices location with Mapbox?

Rather than using the default location engine, I have a custom solution which provides me location events via a onCustomLocationEvent() callback. Using the Mapbox Android SDK I would like to set the devices current location (ie. the blue-dot) using…
Espresso
  • 740
  • 13
  • 32
1
vote
2 answers

Custom markers not visible in mapbox-android

I'm using mapbox-sdk android for location tracking. I want to add few custom markers to the map in specified location. But the below code doesn't works for me. MarkerOptions options = new MarkerOptions(); options.title("pos"); IconFactory…
1
vote
1 answer

Using MapBox to add multiple GeoJSON sources to the same layer

I'm attempting to populate a map with data from multiple GeoJSON files. In the code below, I created the method GeoJSONToMap of which when called, adds markers to the map. GeoJSONToMap: public void GeoJSONToMap(@NonNull Style loadedMapStyle, String…
Enigmatic
  • 3,902
  • 6
  • 26
  • 48
1
vote
1 answer

How to show custom info window on map view

I need to show a custom info window when I click on a pin. The pin is directly in style on the layer. When I creating a map Im getting the style by url: mapView?.getMapAsync { map -> …
Natex
  • 73
  • 8
1
vote
0 answers

Mapbox removing symbol from map not working

I am working on an AndroidApp using the Mapbox integration. The Issue is, that I call the symbolManager.delete() after onResume() in a Fragment without any error but the symbol is still shown on the map. I tried much things, like running on…
1
vote
2 answers

How To Move Marker On Map To New Coordinates?

What I'd like to do: In this code I've instantiated a symbol with a camera position. All I'd like to do is animate the symbol on the map to another set of coordinates that I would hardcode in, for now. I've tried many things but can't figure out how…
A4_TS
  • 130
  • 1
  • 14
1
vote
2 answers

Switch GeoJsonSource data in MapBox

I want to replace the data behind an existing source. This is trivial in javascript: map.getSource('trace').setData(data); See https://docs.mapbox.com/mapbox-gl-js/example/live-update-feature/ That method does not exist in Android. Once I have set…
Heinzlmaen
  • 869
  • 10
  • 20
1
vote
0 answers

Adding multiple Waypoints to mapbox is not working in android kotlin

Trying to add more than 1 waypoint to the route but it just doesn't even build the route : val builder = NavigationRoute.builder(this@MainActivity) //1 .accessToken(Mapbox.getAccessToken()!!) //2 .origin(originPoint)…
Ahmed Wagdi
  • 3,913
  • 10
  • 50
  • 116
1
vote
0 answers

Mapbox React Native Turn By Turn Navigation ANR Problem

React Native version is 59.5 We use https://github.com/SRHealth/react-native-mapbox-navigation but this example renders mapboxnavigationview different view. We don't want to works like that. We are using Mapbox Navigation on our application. iOS…
1
vote
2 answers

How to add/remove markers with MAPBOX android SDK

I am adding markers using the recommend way by adding the marker to the map style as a new layer List symbolLayerIconFeatureList ..... @Override public void onMapReady(@NonNull final MapboxMap mapboxMap) { …
Steve Kamau
  • 2,755
  • 10
  • 42
  • 73
1
vote
1 answer

MapBox for Android inside a Service

I'm trying to instantiate a MapBox map inside an Android Service because I need to stream a navigation routing with my app in background. Right now I created a Service that when started run an Hander on the main looper, and from there, if my map…
supergoofy
  • 21
  • 4
1
vote
0 answers

Debugging CPU consumption and dragging lag in MapBox Android 8.x

I'm using MapBox for Android v8.3.0-beta.1 (similar results on the previous 8.x versions), and the problem I'm facing is that when I drag/pan the map around I see noticeable lag as if camera does not follow the movements. It results in very poor…
alexey_gusev
  • 113
  • 1
  • 1
  • 6
1
vote
1 answer

Mapbox extrusions show in Android but not iOS

I have a Mapbox map style created in Studio to which I have added extrusion layers. These appear in my app on Android, but not in iOS. I did not change anything in the app to make them appear. I'm using the Mapbox iOS framework 4.9 - as far as I can…
Clyde
  • 7,389
  • 5
  • 31
  • 57
1
vote
1 answer

how to achieve car moving animation in MapMyIndia android SDK

I've migrating Google map to MapMyIndia in our Android App(like Uber). All integration parts are done and map working fine, In Document i could not see cab moving animation part. marker.setAnchor(0.5f, 0.5f); marker.setRotation(getBearing(start,…
Gowsik Raja
  • 684
  • 1
  • 8
  • 22
1
vote
1 answer

How to set the Mapbox symbol layer textfield with GeoJSON property value?

I want to create a symbol layer with the textfield set to a property from my GeoJSON file. For instance, in my GeoJSON file each Feature has a property called "rlabel" and I would like to set the value of this label as the symbol layers textfield.…
Espresso
  • 740
  • 13
  • 32