The options object passed into the show function.

interface ShowOptions {
    accessToken: string;
    attributionPosition?: ControlPosition;
    center?: Partial<LatLng>;
    compassPosition?: ControlPosition;
    context?: any;
    delay?: number;
    disableRotation?: boolean;
    disableScroll?: boolean;
    disableTilt?: boolean;
    disableZoom?: boolean;
    hideAttribution?: boolean;
    hideCompass?: boolean;
    hideLogo?: boolean;
    locationComponentOptions: any;
    logoPosition?: ControlPosition;
    margins?: ShowOptionsMargins;
    markers?: MapboxMarker[];
    onLocationPermissionDenied?: any;
    onLocationPermissionGranted?: any;
    onMapReady?: any;
    onMoveBeginEvent?: any;
    onScrollEvent?: any;
    parentView?: any;
    showUserLocation?: boolean;
    style?: string;
    zoomLevel?: number;
}

Properties

accessToken: string
attributionPosition?: ControlPosition

default BOTTOM_LEFT

center?: Partial<LatLng>
compassPosition?: ControlPosition

default TOP_RIGHT

context?: any

Android context

delay?: number

On Android by default there is a 200ms delay before showing the map to work around a race condition.

disableRotation?: boolean

default false

disableScroll?: boolean

default false

disableTilt?: boolean

default false

disableZoom?: boolean

default false

hideAttribution?: boolean

default true

hideCompass?: boolean

default false

hideLogo?: boolean

default false (required for the 'starter' plan)

locationComponentOptions: any
logoPosition?: ControlPosition

default BOTTOM_LEFT

markers?: MapboxMarker[]

Immediately add markers to the map

onLocationPermissionDenied?: any

callback on location permission denied

Android Only

onLocationPermissionGranted?: any

callback on location permission granted

Android Only

onMapReady?: any

callback on Map Ready

onMoveBeginEvent?: any

callback on move begin event

onScrollEvent?: any

callback on scroll event

parentView?: any

Android parent View

showUserLocation?: boolean

default false (true requires adding NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription to the .plist)

style?: string

default 'streets'

zoomLevel?: number

default 0 (which is almost the entire planet)