Skip to main content

Type Alias: RNMarker

type RNMarker = {
advancedOptions?: RNAdvancedMarkerOptions;
anchor?: RNPosition;
coordinate: RNLatLng;
draggable?: boolean;
flat?: boolean;
iconSvg?: RNMarkerSvg;
id: string;
infoWindowAnchor?: RNPosition;
infoWindowIconSvg?: RNMarkerSvg;
opacity?: number;
rotation?: number;
snippet?: string;
title?: string;
zIndex?: number;
};

Marker definition.

On iOS, some default animations are suppressed for parity with Android.

Properties​

PropertyTypeDefault valueDescription
advancedOptions?RNAdvancedMarkerOptionsRenders the marker as an Advanced Marker. A standard marker is rendered while Advanced Markers are not available. See RNAdvancedMarkerOptions.
anchor?RNPosition(0.5, 1.0) = bottom-center See RNPosition.Anchor point relative to the marker icon. (0,0) = top-left, (1,1) = bottom-right.
coordinateRNLatLngMarker coordinate. See RNLatLng.
draggable?booleanfalseEnables marker dragging.
flat?booleanfalseDraws the marker flat against the map.
iconSvg?RNMarkerSvgMarker icon rendered from an SVG string. See RNMarkerSvg.
idstringUnique marker identifier.
infoWindowAnchor?RNPosition(0.5, 0.0) = top-center See RNPosition.Info window anchor relative to the marker. (0,0) = top-left, (1,1) = bottom-right.
infoWindowIconSvg?RNMarkerSvgInfo window content rendered from an SVG string. See RNMarkerSvg.
opacity?number1.0Icon opacity in the range [0, 1].
rotation?number0Rotation angle in degrees.
snippet?stringMarker snippet / subtitle.
title?stringMarker title.
zIndex?number0Z-index used for rendering order.