Skip to main content

Type Alias: RNMapOptions

type RNMapOptions = {
backgroundColor?: string;
camera?: RNCameraUpdate;
liteMode?: boolean;
mapId?: string;
};

Initial map configuration. Applied once at mount time.

Properties​

PropertyTypeDefault valueDescription
backgroundColor?stringBackground color while tiles load.
camera?RNCameraUpdateInitial camera configuration. See RNCameraUpdate.
liteMode?booleanfalseEnables lite rendering mode. Android: supported. iOS: not supported.
mapId?stringMap identifier applied when the map is created. Required by Google Maps features such as Advanced Markers.