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

Mapbox for Android, using Tiles from a server

I am trying to figure out what is the best practice to use Mapbox on Android with tiles stored in a server. I know the tiles are available because I can make them appear on the web. I can use the default styles no problem…
PhilBlais
  • 1,076
  • 4
  • 13
  • 36
2
votes
0 answers

Ability to load 3D models into Mapbox Native Android?

I tried to find an example to load the 3D model into Map Box using Map Box SDK for android without unity. please your suggestion.
2
votes
1 answer

Adding custom location icon in mapbox - Image appears black and white

I'm trying to add a custom icon for the user's location marker in the map. But the icon shows up as black and white. LocationComponentOptions customLocationComponentOptions = LocationComponentOptions.builder(this) …
devil0150
  • 1,350
  • 3
  • 13
  • 36
2
votes
2 answers

Use next zoom level for low-dpi raster tiles in Mapbox to have high-res raster tiles

The iOS MKMapView, if you supply it a raster source that is in 256x256 pixels, will load the four tiles of the same region that are +1 zoom-level. Therefore it seems as if the tiles are in high-dpi-mode. Awesome! Now I have an app that uses a third…
Georg
  • 3,664
  • 3
  • 34
  • 75
2
votes
0 answers

Show LocationComponent above other symbols

I try to put the current location indicator above everything else in my map. I was sent to look into "layerAbove" but i have no layers, just style with icons generated using a symbol manager. override fun onViewCreated(view: View,…
shanih
  • 71
  • 4
2
votes
1 answer

Cannot resolve symbol "CarmenFeature"

I'm trying to use a fragment autocomplete UI from ---> https://docs.mapbox.com/android/plugins/overview/places/ but the IDE says that it can't resolve the symbol CarmenFeature and I don't know how to import that class or solve this exception I've…
Iann7
  • 79
  • 9
2
votes
2 answers

How to add Custom Views as a marker in Mapbox android?

So I want to add custom view markers in my android application, I am fetching the coordinates from an API request and I want to display the logo of the places on their respective marker. I am getting the URL of the marker from the same API request.…
2
votes
1 answer

Mapbox error inflating class com.mapbox.mapboxsdk.maps.MapView

for my app i want to include the mapbox sdk to simply display a map with some markers. I used the example code and everything works fine. Now I switched the Basic Activity to Navigation Drawer Activity and copied the MapView to the generated…
2
votes
0 answers

Bring markers above polyline with deprecated markers

How to bring all the markers above polyline. I'm using deprecated 'Marker' and 'LineManager' to draw marker and polyline. I think with Layers its possible, but its hard for me to switch now, is there any with 'Marker'? This is how i add marker and…
shine_joseph
  • 2,922
  • 4
  • 22
  • 44
2
votes
1 answer

Android Mapbox how to capture marker clicks when using CirlceClustering layer

My Current Android application employs the excellent Mapbox SDK implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:8.0.0' implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v7:0.6.0' implementation…
Hector
  • 4,016
  • 21
  • 112
  • 211
2
votes
0 answers

How to update a viewmodel from another fragment?

I'm trying to pass location data from one fragment to a ViewModel which updates my UI. I have a fragment which contains a MapBoxCoordinatesListener. Every time, when the location is changed, I want to display the updated coordinates to the user.…
kerutf
  • 41
  • 1
  • 6
2
votes
1 answer

JNI DETECTED ERROR IN APPLICATION: Null pointer in Mapbox android SDK

I was using the mapbox sdk 6.3.0. I can add a polygon to the map and I am enabling the user to drag it by changing the feature and then updating the Featurecollection as follows: features.set(features.indexOf(oldFeature),…
hushed_voice
  • 3,161
  • 3
  • 34
  • 66
2
votes
2 answers

Android: Markers is added to mapbox with super delay

I am using map box in my android application. After initializing map box I want to add marker when on longClick on map box so in order according official site I added markerview dependency to application gradle: dependencies { implementation…
Cyrus the Great
  • 5,145
  • 5
  • 68
  • 149
2
votes
0 answers

How to add circles as markers to mapbox in android?

I need a circle(with some color to distinguish ) as location marker (not like an image) in map box. When we zoom in the map box circle should be increased and when we are zooming out it should decrease size. This is my code. It is showing default…
2
votes
1 answer

Android Mapbox with clustering I want each feature to have different marker image

We are implementing clustering on my app. Until now we were using the addMarker method to add the markers, but now with clustering it seems that we should add them by using addSource.GeoJsonSource which we give a feature collection with all the…
Donki
  • 660
  • 6
  • 21