
Android API Level 14 or higher (Android 4.0.3 and above).Traffic: Add realtime traffic data to your map.īefore using any of the Mapbox Plugins for Android, you will need:.Scale bar: Display numbers and a line to help visualize how far various map features are from one another at a certain zoom level.Each component includes an intentBuilder which starts an activity for results and returns a Carmen Feature. Places: Add UI components such as a Place Picker or Autocomplete search built on top of the Mapbox Geocoding API.Offline: Download map tiles and view already-downloaded regions for offline mapping.

MarkerView: Add map markers that are Android system Views.Localization: Change the map's language based on the device's default language settings or other runtime variables.Take this further by allowing users to toggle the layer visibility. Building: Add 3D buildings to your map style with as few as two lines of code.Annotation: Set and adjust the visual properties of annotations on a Mapbox map with minimal code.A brief summary of each plugin and its purpose is provided below: They can be used together or separately depending on your needs. Mapbox plugins cover many of our SDKs for Android. The example below shows how to install the Traffic Plugin, but the process is the same for other plugins. Head over to the Maps SDK Getting Started documentation to learn more. With these plugins, you can pick the features that your app needs without losing the ability to customize all bundled into lightweight dependencies.īy using a plugin, you also include the Maps SDK for Android which means that you'll need to set up your project to use the Maps SDK if you haven't already. Use plugins to show a user's location, display traffic or building overlays, or search for places.

Mapbox Plugins for Android are a collection of libraries that extend our Maps, Navigation, and Java SDKs for Android to help you integrate powerful mapping features into your applications. Separating features into different plugins also allows for a more aggressive updating timeline.


Whether you're looking to include traffic on top of your map or show the user location as a layer, plugins offer customizable APIs with a few lines of code to get started. They provide extra features in lightweight dependencies. Mapbox Plugins for Android are built on top of the Maps SDK. For information on using the Mapbox Maps SDK for Android v10 and higher, see the Maps SDK documentation. Mapbox Android plugins are not compatible with the Maps SDK v10 or higher.
