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

Cannot display Polygon Feature in Mapbox: docs outdated and examples are not working

I was trying to implement PolygonFeature in map but could not do it in a fashion I am adding PointFeature. It does not display the Polygon in the map. I also tried examples Draw a Polygon and Draw a polygon with holes but they are using APIs that…
erluxman
  • 18,155
  • 20
  • 92
  • 126
2
votes
1 answer

How to set text on LineString in Mapbox SDK?

I am working with the LineLayer from Mapbox SDK and having problems with getting text to show up on the line. There is an example from Mapbox. This is what I have so far: // Create a list to store our line coordinates. routeCoordinates = new…
lobuli
  • 109
  • 1
  • 9
2
votes
0 answers

Mapbox: Runtime styling for custom NavigationView

I created a custom NavigationView Fragment which I am calling from my MapView Fragment. Following the example in the documentation I tried to use runtime styling within the navigationView.xml file by creating a custom style. So far I can customize…
Alica
  • 107
  • 2
  • 9
2
votes
1 answer

How do I add the places plugin in the mapbox navigation app (android)?

I've created a turn-by-turn navigation application using mapbox and I wanted to add in the search bar in the application as well. I read forums online and came to know about the places plugin. I have added the required dependencies but am unsure how…
Kush
  • 21
  • 6
2
votes
1 answer

setOnMapClickListener deprecated method of Mapbox

I am using the Mapbox API and its setOnMapClickListener is deprecated. I haven't found any other way to use the onMapClick method; is there another way?
Abubakar
  • 147
  • 2
  • 10
2
votes
1 answer

android mapbox select feature on click

I'm using mapbox, with GeoJsonSource and symbollayer. When user clicks on feature it should change a color. I handle this logic with following code and it works, but it is too slow and takes several second to change icon color. Here I configure…
Nininea
  • 2,671
  • 6
  • 31
  • 57
2
votes
1 answer

Android: how to use mapbox setZoomControlsEnabled?

I just start today using mapbox for android. I want to display zoom control on mapbox mapview. I did a little research, the method should be setZoomControlsEnabled. but I dont know how to use this method on mapbox android sdk v6.3.0. the…
Dika
  • 2,213
  • 4
  • 33
  • 49
2
votes
1 answer

Setting iconColor on SymbolLayer

Using something like val color = PropertyFactory.colorToRgbaString(Color.parseColor(Color.MAGENTA)) mapSymbols.setProperties( PropertyFactory.iconImage(Expression.get("icon")), PropertyFactory.iconColor(color) ) The color…
Diogo Andre
  • 658
  • 5
  • 17
2
votes
1 answer

react-native mapbox is not showing user location and annotation

I am currently learning react-native with maps using mapbox https://github.com/mapbox/react-native-mapbox-gl I followed everything that the map shows, if I give it a lon and lat it does show a location on my emulator but the problem is the…
Dora
  • 6,776
  • 14
  • 51
  • 99
2
votes
0 answers

Using a cordova / PhoneGap Mapbox Plugin to display maps

I'm trying to build an app using the PhoneGap tool set and want to show a map using mapbox. I'm developing it in html, js & css and testing it on an android device using the PhoneGap desktop server tool. I have successfully integrated the plugin via…
Gideon
  • 1,878
  • 4
  • 40
  • 71
2
votes
0 answers

How do I search mapbox geocoder via poi categories?(fuel/gas stations/restaurant)

I been adding mapbox to my app and I got the geocoder to search using auto complete. I can't figure how to search categories tho. Is that feature not yet available? The API documents show it as "preview" and I also found this link. …
2
votes
2 answers

Mapbox 4 to Mapbox 5 errors

I have been trying to to upgrade from Mapbox 4.x.x to Mapbox 5.x.x. It compiles and the app runs, but on the instance creation of Mapbox it crashes with the following errors: I/art: Rejecting re-init on previously-failed class…
SCTaylor
  • 131
  • 3
  • 12
2
votes
1 answer

mapbox remove basemap layer

I'm working on mapbox android sdk. I can show our map tiles ( png raster tiles ), but some districts are transparent and in that places mapbox map appears. In another same project with google map i have done this and google has an option that name…
2
votes
2 answers

How to make an image of the current rendered map (mapbox-android)?

Is it possible to make a png or data-url of the current view on the map?
Emilios1995
  • 487
  • 5
  • 20
2
votes
1 answer

How to use MapBox NavigationView inside a fragment

Based on the changes that has been introduced in 0.7.0, I need to make use of turn-by-turn navigation drop-in UI, however inside my fragment, so I need help trying to figure out how to do so as the documentation to implement NavigationView is based…
Azhar Ali
  • 299
  • 1
  • 12