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
0
votes
1 answer

What view should I return inside InfoWindow method in mapbox?

I am trying to show the infoWindow when user clicks on the marker. What should I return inside Infowindow so that the default infowindow shows up when marker is clicked?Any help is greatly appreciated. Thanks in advance. Here is the code: public…
Aadhil Ahmed
  • 111
  • 15
0
votes
1 answer

Mapbox GeoJSON in wrong position

Apologies in advance if this has been answered. I can not find anything online or in the repository pointing to my issue. I have a ArrayList which is holding my line sting. This display's fine when drawing it with addPolyline I would like…
Joe Doherty
  • 3,778
  • 2
  • 31
  • 37
0
votes
1 answer

Refresh the activity based on checkbox's dynamically varying input

I have created an application which highlights the US states based on the population density. I want to highlight only the states which user needs to see. This is done using RecyclerView and checkbox. This is my .xml file of…
Aadhil Ahmed
  • 111
  • 15
0
votes
0 answers

Not able to draw complete path on mapbox, it is only connecting origin and destination

I want to draw a complete route on Mapbox from origin to destination using .geojson file. Please find below code. private void drawMapMatched(Position[] coordinates) { try { MapboxMapMatching client = new MapboxMapMatching.Builder() …
SaurabhG
  • 173
  • 1
  • 11
0
votes
1 answer

Mapbox download offline maps on click

I am using MapBox on my app and I have a fragment which is separate from the activity that has the map. In that fragment I have a ListView, which contains a list of region names. I want to create the option to click on the ListView and generate a…
Mickey
  • 1,405
  • 2
  • 13
  • 33
0
votes
1 answer

Two markers - current location and destination on MapBox Android

Here is the situation. I use Google Play Location services and MapBox API Maps. When I launch the app I immediately display current user location on A map: private void add() { currentMarker = new MarkerOptions() …
Power3000
  • 11
  • 1
  • 7
0
votes
1 answer

Why mapboxgl api returns 304 status code?

I am getting http code 304 status code for the map box api request in IOS application. But it works in browsers such as Chrome, Safari, Firefox getting 200 code. Also works in…
Gnik
  • 7,120
  • 20
  • 79
  • 129
0
votes
1 answer

Mapbox Navigation `offRoute()` called when first `step` finishes

So, I'm using version Mapbox Navigation 0.3.1, I'm fetching route from private OSRM server. Snap-to-route and other features are just working fine, however when 1st step finishes navigation wouldn't proceed to the next step and offRoute method is…
Farid
  • 2,317
  • 1
  • 20
  • 34
0
votes
1 answer

Change size of road label programmatically?

Can I change the size of road label programmatically? In some case, I need to enlarge the road label and restore its original size after a short time. Currently, I can achieve it by loading another map style and the map will be reloaded completely.…
Kingfisher Phuoc
  • 8,052
  • 9
  • 46
  • 86
0
votes
1 answer

Mabox Android - not getting location updates

I'm using the Mapbox SDK and I want to move and zoom the map to the current location. If I enable the location layer, I get the dot in the correct spot. However my location engine listener isn't being called so I can't move the camera. In…
nasch
  • 5,330
  • 6
  • 31
  • 52
0
votes
1 answer

MapBox: show marker's info window without access to a MapView

I'm using the Android MapBox SDK, and I want to show the info window for a marker that I've created. showInfoWindow as far as I can tell is the only way to do this. The problem is it requires both a MapBoxMap, which I have, and a MapView, which I…
nasch
  • 5,330
  • 6
  • 31
  • 52
0
votes
1 answer

Mapbox Navigation `onProgressChange()` not fired when 0.4.0-SNAPSHOT used

I've implemented Mapbox Navigation and lately got it working, now I want to update navigation from 0.3.1 to 0.4.0-SNAPSHOT, unfortunately after update onProgressChange() not being fired even though I haven't made any changes to code. NOTE:…
Farid
  • 2,317
  • 1
  • 20
  • 34
-1
votes
0 answers

Best map/navigation framework can be integrated to AOSP/AAOS 13

I would like integrate map/navigation app in custom AOSP ROM which is developing for automotive. I'm using Android 13 version. I did not find any proper solution for this. Most of the frameworks like Tomtom,MapmyIndia,Here SDK, MapBox are supporting…
-1
votes
1 answer

Migrating Expression.inExpression with kotlin.IntArray from Mapbox Android v9 to v10

I'm migrating an app from v9 of the Mapbox Android SDK to v10, and I'm running into an issue trying to update some code we're using to filter a layer's features using a Kotlin IntArray. This worked for us in Mapbox Android v9:…
Nate Irwin
  • 600
  • 1
  • 11
  • 20
-1
votes
1 answer

Is it possible to make an outline around the continents in Mapbox Studio?

I would like to create a map of the world like the one in this image: I am until now only familiar with Googlemaps studio, and it does not have the capacity to make a theme with outlines of the continents like this (though it is possible with a…
user204468
  • 11
  • 3