Options

class Options(context: Context)

Builder to configure using an AttributionParser.

AttributionData, set with .withAttributionData, is the only required property to build the underlying AttributionParser. Other properties include trimming the copyright sign, adding telemetry attribution or hiding attribution as improve this map and Mapbox.

Constructors

Options
Link copied to clipboard
fun Options(context: Context)

Functions

build
Link copied to clipboard
fun build(): AttributionParser
Build the attribution parser
withAttributionData
Link copied to clipboard
fun withAttributionData(vararg attributionData: String): AttributionParser.Options
Adds attribution data to the attribution parser builder
withCopyrightSign
Link copied to clipboard
fun withCopyrightSign(withCopyrightSign: Boolean): AttributionParser.Options
Flag indicating to add the copyright sign
withImproveMap
Link copied to clipboard
fun withImproveMap(withImproveMap: Boolean): AttributionParser.Options
Flag indicating to add improve this map to the attribution dialog
withMapboxAttribution
Link copied to clipboard
fun withMapboxAttribution(withMapboxAttribution: Boolean): AttributionParser.Options
Flag indicating to add Mapbox attribution
withTelemetryAttribution
Link copied to clipboard
fun withTelemetryAttribution(withTelemetryAttribution: Boolean): AttributionParser.Options
Flag indicating to add telemetry attribution