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
| Property | Type | Default value | Description |
|---|---|---|---|
advancedOptions? | RNAdvancedMarkerOptions | Renders 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. |
coordinate | RNLatLng | Marker coordinate. See RNLatLng. | |
draggable? | boolean | false | Enables marker dragging. |
flat? | boolean | false | Draws the marker flat against the map. |
iconSvg? | RNMarkerSvg | Marker icon rendered from an SVG string. See RNMarkerSvg. | |
id | string | Unique 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? | RNMarkerSvg | Info window content rendered from an SVG string. See RNMarkerSvg. | |
opacity? | number | 1.0 | Icon opacity in the range [0, 1]. |
rotation? | number | 0 | Rotation angle in degrees. |
snippet? | string | Marker snippet / subtitle. | |
title? | string | Marker title. | |
zIndex? | number | 0 | Z-index used for rendering order. |