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

Android Mapbox, Setting LineLayer on Snapshot results

Environment: Mapbox Sdk Ver: 10.10.0 I'm now struggling with snapshot results using [Snapshotter] which is embedded class of mapbox.map I can check LineLayer has drawn perfectly on my MapView before taking snapshots, but after I take a snapshot and…
1
vote
1 answer

How to add a circle to the mapbox map

Please help! I'm doing everything according to the documentation, but it's in Kotlin. I need to display circles on the map. I followed the prompts of the IDE, but the application crashes AnnotationPlugin annotationAPI =…
1
vote
0 answers

Android | Kotlin | I have this problem. GeoJson parsing Mapbox map Exception

FATAL EXCEPTION: GEOJSON_PARSER Process: com.example.test, PID: 10995 com.mapbox.maps.MapboxConcurrentGeometryModificationException: While applying FeatureCollection to geojson source with id="line" some collection was mutated which is not allowed…
1
vote
1 answer

How to create Mapbox Marker Onclick Eventlistener Android Studio?

Hello Stackoverflow community, I am trying to develop an Android application with Mapbox. I followed this guide to create markers on the map. https://docs.mapbox.com/android/maps/examples/default-point-annotation/ Thus my code is the following: …
1
vote
0 answers

Does the MapBox Android SDK support drawing overlapped holes in Polygons?

I am developing a location-based strategy game for Android. In it, the user will be able to build radar stations that grant visibility on an otherwise dark map. Other structures and the player will ideally have a line-of-sight that grants them…
user19113197
1
vote
1 answer

React Native Mapbox v10 iOS map

I am React Native developer and I am building a shuttle Bus application using Mapbox. I got some questions while I was working on my project :) Using the same code, I can load Mapbox map on Android emulator, however I cannot load map on iOS. I am…
1
vote
2 answers

How to fixed the mapbox navigation puck's position and direction

With the default mapbox navigation following mode, the puck will move to many positions on the screen and in many direction. How can I align it to center horizontal in bottom of the screen and the direction always point to top? Then only the map…
Linh
  • 57,942
  • 23
  • 262
  • 279
1
vote
1 answer

Android mapbox v10 - dynamically change the source url

We have a usual source url of something like https://my-source/{x}/{y}/{z}. When the user selects filtering options, we'd like to add these params to the url as something like https://my-source/{x}/{y}/{z}?my-param=true and instantly update the…
enyciaa
  • 1,982
  • 1
  • 14
  • 24
1
vote
1 answer

Integrating Mapbox with .NET MAUI

I am currently developping an native Android app using Mapbox with Visual Studio (using some Mapbox nugets). I have to do the whole dev to address iOS customers but Xamarin.Forms nuget version of Mapbox is out of date, both Android & iOS SDKs have…
1
vote
2 answers

Mapbox not opening in unity?

I have the 2020.3.32f1 version of Unity and have tried to open Mapbox version 2.1.1 - the current one I am being told by the Mapbox website to download. It says I need Unity 2017 and higher so everything should be right, correct? Then why does it…
Waypoint
  • 21
  • 5
1
vote
1 answer

How do I grey out an area outside of a polygon in MapBox for Android?

I am currently using MapBox maps for Android v10.3.0. My app is written in Kotlin. Using the PolygonAnnotation, PolygonAnnotationManager, and PolygonAnnotationOptions I am able to draw and shade a polygon on the map. Example: // Create an…
1
vote
1 answer

MapBox change feature properties of Vector map

I am modifying features from layer and would like to use similar to "setData()" to a vector layer? From googling some places i read that its not possible to use that setData function to vectors and only to geojsons. What i am doing is first i get…
eko
  • 329
  • 2
  • 11
1
vote
0 answers

MapBox Android: How to dynamically set the iconOffset property in a SymbolLayer?

MapBox version: 9.5.0 I'm trying to make my MapBox SymbolLayer to dynamically set the iconOffset value for each feature in my source. I have several different types of mark designs, some which needs to be slightly offset depending on the content of…
amadeus
  • 63
  • 6
1
vote
1 answer

Mapbox Api Response saving into database illegal?

When I make request to mapbox api https://api.mapbox.com/geocoding/v5/mapbox.places/Los%20Angeles.json?access_token=YOUR_MAPBOX_ACCESS_TOKEN I get the response like : {"type":"FeatureCollection","query":[""]} Then in the last of the reponse I…
1
vote
1 answer

How to draw line gradient with dynamic stop in Mapbox

How can I pass a dynamic list of stop parameter to line Gradient function in Mapbox SDK for Android (kotlin) Something like: val stops = [stop1, stop2...stopN] style.addLayer(new LineLayer("linelayer", "line-source").withProperties( …
Ngoc Phung
  • 13
  • 2