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

Crash in Mapbox SDK after resuming app from background - context is null

After my app is resumed from the background, I am sometimes getting a crash: #0. Crashed: main at com.mapbox.mapboxsdk.annotations.IconFactory.getInstance(IconFactory.java:53) at…
tenprint
  • 1,123
  • 1
  • 11
  • 29
0
votes
0 answers

Im new to mapbox and I want to restrict the viewing of my map to my campus only, how do I do it?

im using android studio and mapbox and i saw other post like using bounding box and setScrollableAreaLimit() but i dont know how to use them.
0
votes
1 answer

MapBox - app freezes when updating to latest SDK

I'm working on a project for a client where I have to update the existing Android MapBox SDK (5.1.3) to the latest MapBox SDK (5.5.0). The application worked perfectly fine on the older SDK but as soon as I updated the SDK, my application freezes,…
Verhelst
  • 1,492
  • 2
  • 22
  • 46
0
votes
1 answer

Android Mapbox Crash

I am using this demo: https://github.com/mapbox/mapbox-android-demo/blob/a411fa95cd71c1b90a30895060b319310444aebb/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/plugins/LocationPluginActivity.java I am trying to enable…
user2101081
  • 445
  • 5
  • 22
0
votes
1 answer

Mapbox Turn-By-Turn Walking directions Android

Hi so I'm very new to mapbox so please forgive if this is simple, I'm having real issues with the turn-by-turn navigations. Is it possible to have walking turn-by-turn navigations? From what I've seen it ways it is possible but I can't find any code…
pceh2
  • 1
  • 1
0
votes
0 answers

How to add an origin and destination search bar in mapbox for android

Im new to mapbox and android development as well. This is a personal project and I've been trying to learn all this stuffs. I would love to know how to achieve this search box through mapbox. Any advice we'll be much appreciated. Thank you in…
0
votes
1 answer

New LineLayer won't appear unless map zoomed in/out

I have some routes in my code, and user can choose which one they wanna see on their map. For example, there are route X and route Y. Then user is seeing route Y and tap a button to see route X. Route Y is hidden and route X is shown. Now here's my…
Konayuki
  • 674
  • 1
  • 9
  • 21
0
votes
2 answers

mapbox-navigation-android add waypoints

I search to add waypoints to my journey. https://github.com/mapbox/mapbox-navigation-android/blob/master/app/src/main/java/com/mapbox/services/android/navigation/testapp/activity/WaypointNavigationActivity.java In this example, the next waypoint is…
0
votes
1 answer

MapboxOptimizedTrips missing from package MapboxSDK.AndroidServices (Xamarin.Android)

I'm currently implementing MapBox in a Xamarin.Android application, I'm looking at the examples from MapBox Github, this one in specific…
0
votes
1 answer

How to put drawable for polyline pattern in Mapbox?

Just like for marker where we can put drawable for its icon, such as with Marker's .SetIcon(), how to do the same with Mapbox's polyline? I've searched Google but, CMIIW, seems like there isn't a way to do that yet? Some links I think are…
Konayuki
  • 674
  • 1
  • 9
  • 21
0
votes
1 answer

How to use style created in mapbox studio in android code?

I want to create a style in mapbox studio. Lets say specifying blur effect, zoom etc. I can export this style as a link or as a .json file. And I want to use the style properties in android code for a specific CircleLayer. I know I can set…
Andrew
  • 2,438
  • 1
  • 22
  • 35
0
votes
1 answer

How to use custom/different colored markers using Mapquest API?

I am trying to use different colored markers to denote different types of events but I can't find any information anywhere as to how to implement custom MapQuest markers in Android. I am writing in Java and using an Android MapFragment. private…
0
votes
1 answer

When activity is recreated, adding layer has no effect

I have this issue: after screen orientation I try to (re)add Layer that I have previously removed in onDestroy(). If I look for a Layer in mapBoxMap.getLayer(String id), I get null, even if just before that I added this layer to the map. Logs show…
Ubu
  • 1
  • 2
0
votes
2 answers

How do I always display the Infowindow in Mapbox android without having to click on the marker?

I am working on mapbox android. I need the infowindow to be shown on top of all markers when the activity is loaded, without having to click on the markers to see each info window.How do I acheive this functionality in mapbox? Here is the code:- …
Aadhil Ahmed
  • 111
  • 15
0
votes
2 answers

Failed to sync gradle project after adding Mapbox navigation SDK package.Its showing some irrelavant error

Here is my gradle file. I am using Appcompat 25.3.1 version, but the error is on Appcompat 26.1.0. This error goes off when navigation SDK package is removed. I dont understand what is happening. Any help is greatly appreciated. apply plugin:…