mapbox-gl-native-android | thoroughly customizable maps in native Android | Map library

 by   mapbox Java Version: android-v9.7.2 License: Non-SPDX

kandi X-RAY | mapbox-gl-native-android Summary

kandi X-RAY | mapbox-gl-native-android Summary

mapbox-gl-native-android is a Java library typically used in Geo, Map applications. mapbox-gl-native-android has no bugs, it has no vulnerabilities, it has build file available and it has low support. However mapbox-gl-native-android has a Non-SPDX License. You can download it from GitHub.

Mapbox Maps SDK v10 beta is now available at mapbox/mapbox-maps-android. Mapbox maintains this repo to address bug fixes and security vulnerabilities. The Mapbox Maps SDK for Android is a library based on Mapbox GL Native for embedding interactive map views with scalable, customizable vector maps onto Android devices.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              mapbox-gl-native-android has a low active ecosystem.
              It has 182 star(s) with 106 fork(s). There are 86 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 135 open issues and 244 have been closed. On average issues are closed in 88 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of mapbox-gl-native-android is android-v9.7.2

            kandi-Quality Quality

              mapbox-gl-native-android has 0 bugs and 0 code smells.

            kandi-Security Security

              mapbox-gl-native-android has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              mapbox-gl-native-android code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              mapbox-gl-native-android has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              mapbox-gl-native-android releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              mapbox-gl-native-android saves you 69024 person hours of effort in developing the same functionality from scratch.
              It has 77556 lines of code, 7908 functions and 747 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed mapbox-gl-native-android and discovered the below as its top functions. This is intended to give you an instant insight into mapbox-gl-native-android implemented functionality, and help decide if they suit your requirements.
            • Main thread
            • Update the FPS s FPS
            • Performs rendering of a draw frame
            • Add polygon to the map
            • Adds a marker to the map
            • Add markers to the map
            • Adds polyline options to the map
            • Adds the polyline with the given map options
            • Adds a polygon to the map
            • Creates a unique hash code for this object
            • Gets a hashcode for the set
            • Force location update
            • Makes a request
            • Obtains all markers in the specified rectangle
            • Returns a hash code for the application
            • Compares two MapLoad events
            • Converts a string to a human readable string
            • Adds the bitmaps to the style
            • Returns a JSON representation of this object
            • Shows the layer
            • Creates a hash code for this foreground
            • Writes the contents of the Parcelable object
            • Compares this object to another object
            • Compares the specified LocationOptions with the specified options
            • Initializes an arrow path
            • Writes a Parcelable object
            Get all kandi verified functions for this library.

            mapbox-gl-native-android Key Features

            No Key Features are available at this moment for mapbox-gl-native-android.

            mapbox-gl-native-android Examples and Code Snippets

            No Code Snippets are available at this moment for mapbox-gl-native-android.

            Community Discussions

            Trending Discussions on mapbox-gl-native-android

            QUESTION

            Mapbox in Android - Black color around GEOTiff raster layers
            Asked 2020-May-28 at 14:11
            Goal

            I need to add some aeronautical layers taken from FAA to the map. The layers are provided as GeoTIFF files.

            Steps
            1. Downloaded a GeoTiff file from FAA website.
            2. Using QGis app clipped the legend from the file. Actually the issue occurs without this step as well.
            3. 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 I got Error creating Mapnik Datasource: Invalid raster: Invalid rotation value in geotransform array when uploading to Mapbox.
            4. Created a Tileset by uploading GeoTIFFs to Mapbox.
            5. Created a new style in the Mapbox Studio.
            6. Added the tilesets as layers.
            Mapbox Studio Result

            The map is showing well in Mapbox Studio:

            Android Result

            However in Android app this style shows with some black borders of random width depending on zoom level and camera position. Here is how it looks in android:

            I tried it on Pixel 3a (Android 10), Nexus 5x (Android 8.1) and Android emulator (Android 10). I have good internet connection and gave it enough time so the tiles are loaded.

            The source code where the map is embedded is official Demo app. I just replaced token and style URL:

            ...

            ANSWER

            Answered 2020-May-28 at 14:11

            The black borders should be transparent, but the raster image format Mapbox is using (JPG) does not support transparency, which is a known issue that exists in every gl-native-based SDK. This issue presents itself when you reference a style that has the raster layer built in.

            As a workaround, you can follow Mapbox's troubleshooting guide on troubleshooting raster images with black backgrounds to make your tileset transparent and then add the tileset as a RasterSource within your Android application to display the raster tile as expected.

            Please take a look at the following example as a reference for adding a RasterSource:

            Instead of calling the rasterSource using "mapbox://username.tilesetID", you need to call it similarly to the Add a WMS Source example. The code below will resolve your issue:

            style.addSource(RasterSource( "albuquerque-source", TileSet( "tileset", "https://api.mapbox.com/v4//{z}/{x}/{y}.png?access_token=" ), 256 ))

            Source https://stackoverflow.com/questions/61141793

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install mapbox-gl-native-android

            This particular README is for people who are interested in working on and improving the Maps SDK for Android. If you're looking for more general information and instructions on the Maps SDK:. Visit https://docs.mapbox.com/android/maps/overview to see current documentation on the Maps SDK for Android. Visit https://docs.mapbox.com/android/api/map-sdk to view the Maps SDK's current API reference Javadoc files. See the Mapbox website's Android install flow to install and use the Mapbox Maps SDK for Android in an application.
            These instructions are for developers interested in making code-level contributions to the SDK itself. If you instead want to use the SDK in your app, see above.
            Latest stable Android Studio and Android SDK.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/mapbox/mapbox-gl-native-android.git

          • CLI

            gh repo clone mapbox/mapbox-gl-native-android

          • sshUrl

            git@github.com:mapbox/mapbox-gl-native-android.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link