mapbox-android

MapBox: Capture whole screen but mapboxmap turned out to be black

心已入冬 提交于 2021-01-29 20:18:03
问题 I am implementing a running tracker. My UI consists of a MapBox mapView and a display that contains a few layouts that make up the time, distance etc. The mapView takes up the top half of the parent layout while the display takes up the bottom half. After the run I want to take a screenshot of the screen and save the img as a Bitmap. However when I use the conventional way of getDrawingCache() , the part of the img that is the mapView becomes a black box. Anyone knows how to solve this

What is the best way to add markers on MapBox?

廉价感情. 提交于 2021-01-25 06:55:29
问题 As most of you know, mapbox.addMarker() is deprecated! I tried to figure the new way to add markers which are using Symbol Layer I'm using this code, it is working for me! but it re-define the Style of the map every time I want to add a marker here is the code: //Add Marker to the Map public void addMarker(@NonNull LatLng point) { Feature feature = Feature.fromGeometry(Point.fromLngLat(point.getLongitude(), point.getLatitude())); mapboxMap .setStyle(new Style.Builder() .fromUri("mapbox:/

Setting Carmen Feature address to my Address Object (Mapbox Android)

纵饮孤独 提交于 2021-01-07 03:23:40
问题 Basically I need to set this string address returned from CarmenFeature to my Address Object. The below code basically returns the string address using the placeName method. private void reverseGeocode(final Point point) { try { MapboxGeocoding client = MapboxGeocoding.builder() .accessToken(getString(R.string.access_token)) .query(Point.fromLngLat(point.longitude(), point.latitude())) .geocodingTypes(GeocodingCriteria.TYPE_ADDRESS) .build(); client.enqueueCall(new Callback<GeocodingResponse>

Setting Carmen Feature address to my Address Object (Mapbox Android)

▼魔方 西西 提交于 2021-01-07 03:22:59
问题 Basically I need to set this string address returned from CarmenFeature to my Address Object. The below code basically returns the string address using the placeName method. private void reverseGeocode(final Point point) { try { MapboxGeocoding client = MapboxGeocoding.builder() .accessToken(getString(R.string.access_token)) .query(Point.fromLngLat(point.longitude(), point.latitude())) .geocodingTypes(GeocodingCriteria.TYPE_ADDRESS) .build(); client.enqueueCall(new Callback<GeocodingResponse>

Mapbox android SDK error - java.lang.ClassNotFoundException: Didn't find class “com.mapbox.android.telemetry.MapboxTelemetry”

假如想象 提交于 2020-12-26 09:08:15
问题 I have added mapbox sdk to existing android project via direct download (https://docs.mapbox.com/android/maps/overview/#add-the-dependency) I have added dependancy to build.gradle file like below. implementation project(':mapbox-android-sdk-9.3.0') After that i have changed my source code using it and it was complied successfully and , but in runtime i got below exception. Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.android.telemetry.MapboxTelemetry" on path:

Mapbox android SDK error - java.lang.ClassNotFoundException: Didn't find class “com.mapbox.android.telemetry.MapboxTelemetry”

本秂侑毒 提交于 2020-12-26 09:07:01
问题 I have added mapbox sdk to existing android project via direct download (https://docs.mapbox.com/android/maps/overview/#add-the-dependency) I have added dependancy to build.gradle file like below. implementation project(':mapbox-android-sdk-9.3.0') After that i have changed my source code using it and it was complied successfully and , but in runtime i got below exception. Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.android.telemetry.MapboxTelemetry" on path:

Mapbox android SDK error - java.lang.ClassNotFoundException: Didn't find class “com.mapbox.android.telemetry.MapboxTelemetry”

此生再无相见时 提交于 2020-12-26 09:06:35
问题 I have added mapbox sdk to existing android project via direct download (https://docs.mapbox.com/android/maps/overview/#add-the-dependency) I have added dependancy to build.gradle file like below. implementation project(':mapbox-android-sdk-9.3.0') After that i have changed my source code using it and it was complied successfully and , but in runtime i got below exception. Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.android.telemetry.MapboxTelemetry" on path:

react-native mapbox is not showing user location and annotation

心已入冬 提交于 2020-06-29 20:41:14
问题 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 annotation and show user location doesn't show at all. Does anyone have any idea what I might be missing? I have been rebuilding the app a few times and checked debugging that there is no errors though here is my simple code export default class App extends

react-native mapbox is not showing user location and annotation

岁酱吖の 提交于 2020-06-29 20:41:14
问题 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 annotation and show user location doesn't show at all. Does anyone have any idea what I might be missing? I have been rebuilding the app a few times and checked debugging that there is no errors though here is my simple code export default class App extends

Mapbox in Android - Black color around GEOTiff raster layers

一个人想着一个人 提交于 2020-06-16 20:47:31
问题 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 this step as well. Reprojected it to EPSG:3857 using GDAL command gdalwarp -q -t_srs EPSG:3857 -dstalpha -of vrt Albuquerque\ SEC\ 104-cut.tif /vsistdout/ | gdal_translate -co compress=lzw /vsistdin/ Albuquerque\ SEC\ 104-north-up-cut.tif . Otherwise