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

Mapbox Fragment inside another activity

I'm trying to create an application that tracks a user's eyes while driving which will also show turn by turn navigation. There will be a camera preview on the same screen as the maps, similar to the image below, where the camera preview is in the…
1
vote
1 answer

Mapbox with nativescript | element-registry issue

Good morning. Could someone help me? I have tried to make an app in NativeScript-Angular using mapbox following This video In the [Mapbox docs] (https://market.nativescript.org/plugins/nativescript-mapbox/) say that I need this: import {…
Camilo
  • 27
  • 7
1
vote
0 answers

Detect when a ShapeSource finished loading its url GeoJson data in react-native

I'm using the react-native-mapbox-gl/maps library in my react-native app, and I'm trying to show a
Victor
  • 5,043
  • 3
  • 41
  • 55
1
vote
1 answer

Android Studio Mapbox Layer Problem with both Symbol Layer and Circle Layer Crash

I am developing a geovisualization data map that would plot the map of different colors depending on different number values. And, would want to have the number values be visualized on top of the circles too (it is a data of air pollution in a road…
1
vote
1 answer

Is there any way to let mapbox-navigation recognize custom tileset?

I'm trying to make a "AR campus application" which can show very accurate details(directions, times) about destination in campus(college) and show it as AR with unity. So I made a Dataset which contains informations about my college.(building name,…
HJ Kim
  • 51
  • 1
  • 7
1
vote
1 answer

How to remove a Linestring from a mapbox map on Android

I'm using mapbox for android (java) and I'm not sure how to remove a linestring after I've set it to a geojson source. I'm using the MapboxDirections builder to generate a route called currentroute, and then using this code to display it on the…
1
vote
1 answer

Snap to Roads using Mapbox

I'm currently looking for the Mapbox Snap to Roads API the same as Google map Snap to Roads API. Is there any Mapbox APIs the same as Google map Snap to Roads?
Bunlong
  • 652
  • 1
  • 9
  • 21
1
vote
2 answers

MapBox: How to capture bitmap of map with polylines

I used the MapSnapshotter to capture the bitmap of the map. However, I could only get the image of the base map but not the polylines that I have drawn over it, which is the running route of the user and is crucial to my project. Is there anyway to…
Wang Xing Peng
  • 163
  • 1
  • 8
1
vote
1 answer

Mapbox Android SDK - querySourceFeatures at a given coordinate

I use Mapbox Tileset API and generated a custom tileset (it's a huge 400MB of GeoJSON data) uploaded to Mapbox servers, and added to our style in the studio as a custom fill layer. This way I can show our custom areas (as polygons) of the world with…
Peter
  • 748
  • 6
  • 20
1
vote
1 answer

React Native Mapbox GL: MarkerView component is missing

I hope this is the right place to ask. I'm developing a react-native-mapbox-gl/maps app on Windows 10, and the MarkerView component just isn't showing up. Here's the App.js code for reference: import React, { Component } from 'react'; import { …
1
vote
0 answers

android mapBox java.lang.Exception: Last location unavailable

Integrated mapbox in android.On some devices theres no problem and on some other devices the current location is not being set.It just shows a black screen for mapView.In the devices that not showing the current location in the mapview the Logcat…
Abraham Mathew
  • 2,029
  • 3
  • 21
  • 42
1
vote
1 answer

How to display user's movement in real time in Android MapBox SDK

How to make MapBox SDK(Android) so that when the user moves around the map, a line is drawn behind him in real time (his movement itself)
user11163395
1
vote
1 answer

Mapbox: How to get a reference of a MapView from the Mapbox defined Fragment?

I followed the Mapbox's instructions here https://docs.mapbox.com/android/maps/examples/support-map-fragment/ and I can successfully visualize the map from the MapFragment. //Create the mapFragment if (savedInstanceState == null) { // Create…
H.Karatsanov
  • 199
  • 4
  • 16
1
vote
1 answer

Mapbox in Android - Black color around GEOTiff raster layers

Goal I need to add some aeronautical layers taken from FAA to the map. The layers are provided as GeoTIFF files. Steps Downloaded a GeoTiff file from FAA website. Using QGis app clipped the legend from the file. Actually the issue occurs without…
RustamG
  • 1,815
  • 1
  • 14
  • 16
1
vote
1 answer

Mapbox: Error setting property: icon-image [2] Branch labels must be numbers or strings

I'm trying to use the match() Expression from Mapbox's Android SDK 9.0.0 with a list of ids. But I'm getting the following error at runtime: "Error setting property: icon-image [2] Branch labels must be numbers or strings." I am coding in Kotlin.…
Michael Osofsky
  • 11,429
  • 16
  • 68
  • 113