mapbox-android

How to Build Map app Navigation using MapBox API?

不问归期 提交于 2020-04-18 06:11:08
问题 I want to make map app for blind users in KSU campus using Mapbox API that position your location and gives you the routing to your destination turn by turn and tell you about the places in your way by voice. I want it to work in offline mode, also the user can search for his/her destination using keywords or by suggestions based on categories such as restaurants, faculties, etc. Do I need database, can you give me tips and summary on the things I will do like you can say conceptual overview?

How to Build Map app Navigation using MapBox API?

天大地大妈咪最大 提交于 2020-04-18 06:10:10
问题 I want to make map app for blind users in KSU campus using Mapbox API that position your location and gives you the routing to your destination turn by turn and tell you about the places in your way by voice. I want it to work in offline mode, also the user can search for his/her destination using keywords or by suggestions based on categories such as restaurants, faculties, etc. Do I need database, can you give me tips and summary on the things I will do like you can say conceptual overview?

mapbox.getStyle() returns null when changing maptype

独自空忆成欢 提交于 2020-03-26 04:06:09
问题 I have a problem with mapbox when changing the mapStyle from Style.MAPBOX_STREETS to Style.SATELLITE_STREETS (and vice versa) quickly in a row. (This happens with other styles too, those are just examples) My code: public void btnChangeMapType(View view) { this.mapboxMap.getStyle(style -> { String styleUri = this.mapboxMap.getStyle().getUri(); if (this.animator != null) this.animator.cancel(); if (styleUri.equalsIgnoreCase(SATELLITE_STREETS)) { changeMapType(Style.MAPBOX_STREETS, this

Android : Error Snack bar not showing correctly with Map View

ⅰ亾dé卋堺 提交于 2020-02-04 07:17:46
问题 this is xml layout <android.support.design.widget.CoordinatorLayout android:id="@+id/map_location_picker_main_content" android:layout_width="match_parent" android:layout_height="match_parent"> <com.mapbox.mapboxsdk.maps.MapView android:id="@+id/map_view" android:layout_width="match_parent" android:layout_height="match_parent" /> </android.support.design.widget.CoordinatorLayout> and this is the output : I am using a CoordinatorLayout as a root of my xml file and mapbox layout for showing the

Exclude certain groups/modules from mapbox-sdk

和自甴很熟 提交于 2019-12-23 05:05:17
问题 So I'm using the mapbox-sdk for android in my project to display the map with a particular customer's location. However, simply adding mapbox has made my app extremely bulky, and I want to reduce its size by somehow excluding some of the groups/modules from mapbox in the gradle. But I don't know which ones to exclude since I don't know how to get a list of them. Is there any way to get a list of groups/modules that are automatically integrated with the integration of the mapbox sdk? Which

Get Directions between two points in Mapbox?

拜拜、爱过 提交于 2019-12-20 05:38:16
问题 I recently using mapbox gl on react native instead of Google maps, I am trying to add a feature that shows a direction from point A to point B on the map. OR use Mapbox directions API inside my React Native App here is my code I tried but after my screen mounted, the app crashed successfully :D import MapboxGL from '@react-native-mapbox-gl/maps'; import React from 'react'; import {View} from 'react-native'; MapboxGL.setAccessToken( '....', ); class TwoPoints extends React.Component {

mapbox-navigation-android add waypoints

怎甘沉沦 提交于 2019-12-14 02:59:51
问题 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 add at the end of the journey. I would like to add all points in the same journey. Have you an idea ? 回答1: You can add waypoints when making a new route request with NavigationRoute . In our docs https://www.mapbox.com/android-docs/navigation

How to add/remove markers with MAPBOX android SDK

删除回忆录丶 提交于 2019-12-11 17:28:32
问题 I am adding markers using the recommend way by adding the marker to the map style as a new layer List<Feature> symbolLayerIconFeatureList ..... @Override public void onMapReady(@NonNull final MapboxMap mapboxMap) { symbolLayerIconFeatureList = new ArrayList<>(); symbolLayerIconFeatureList.add(Feature.fromGeometry( Point.fromLngLat(-57.225365, -33.213144))); symbolLayerIconFeatureList.add(Feature.fromGeometry( Point.fromLngLat(-54.14164, -33.981818))); symbolLayerIconFeatureList.add(Feature

Unable to generate build with pro guard enabled using Mapbox SDK 6.7

喜欢而已 提交于 2019-12-02 11:24:44
问题 Mapbox SDK: 6.7.0 After enabling the proguard in the gradle, we are getting the following error. com.mapbox.services.android.location.LostLocationEngine: can't find superclass or interface com.mapbox.services.android.telemetry.location.LocationEngine com.mapbox.services.android.location.MockLocationEngine: can't find referenced class com.mapbox.services.android.telemetry.location.LocationEngine$Type I have used LocationComponent, LocationEngine and LocationEngineProvider classes in my

Rotate and change position for markers in latest MapBox SDK 6.7

混江龙づ霸主 提交于 2019-12-01 06:17:53
Mapbox Android SDK: 6.7.0 The requirement in the application we are developing is that we have to add multiple markers in different LatLng positions and also rotate them with some bearing. In the old mapbox version(4.2.1), we could do it without any issues. ////Working code with MapBox SDK 4.2.1//// MarkerViewOptions markerViewOptions = new MarkerViewOptions(); IconFactory iconFactory = IconFactory.getInstance(this); Icon arrowIcon = iconFactory.fromResource(R.drawable.compass_needle); markerViewOptions.icon(arrowIcon); markerViewOptions.position(new LatLng(position)).rotation((float)