The Mapbox Maps Logo Plugin for Android is an public library for displaying logo on top of MapView. By default the plugin will show the Mapbox logo on top of the map at the bottom-left corner. Please visit our documentation for more information on displaying the Mapbox Logo.
A full overview of classes and interfaces can be found in our API documentation.
This README is intended for developers who are interested in contributing to the Mapbox Maps Logo Plugin for Android. Please visit DEVELOPING.md for general information and instructions on how to use the Mapbox Maps Plugin System. To add the logo plugin to your project, you configure its dependency in your build.gradle
files.
// In the root build.gradle file
// The Mapbox access token needs to a scope set to DOWNLOADS:READ
allprojects {
repositories {
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
username = "mapbox"
password = "INSERT_MAPBOX_ACCESS_TOKEN_HERE"
}
}
}
}
// In the app build.gradle file
dependencies {
implementation 'com.mapbox.plugin:maps-logo:11.6.0-rc.1'
}
Customizing Mapbox Maps Logo Plugin for Android could be done in two ways: by setting the LogoSettings to the logo plugin. This can be achieved with:
val plugin = mapView.logo
plugin.logoSettings = LogoSettings(...)
More concrete examples of the logo plugin can be found in our test application.
View LICENSE.md for all dependencies used by this plugin.