Marker / MarkerF
TheMarker component renders a marker on the map at a specified location. Both Marker and MarkerF are available - they are functionally identical (MarkerF is the functional component, Marker is an alias).
Props
The marker position. Required.
Marker options object.
Animation for the marker (BOUNCE or DROP).
Whether the marker is clickable.
Mouse cursor to show on hover.
Whether the marker can be dragged.
Icon for the marker.
Label for the marker.
Opacity of the marker (0.0 to 1.0).
Shape for the marker’s clickable region.
Rollover text.
Whether the marker is visible.
Z-index for stacking order.
Marker clusterer instance for clustering markers.
Prevents redraw when adding/removing from clusterer.
Child components (e.g., InfoWindow).
Event Handlers
Fired when the marker is clicked.
Fired when the marker is double-clicked.
Fired repeatedly while the marker is being dragged.
Fired when the marker is finished being dragged.
Fired when the user starts dragging the marker.
Fired when mouse button is pressed on the marker.
Fired when the mouse leaves the marker area.
Fired when the mouse enters the marker area.
Fired when mouse button is released on the marker.
Fired when the marker is right-clicked.
Fired when the clickable property changes.
Fired when the cursor property changes.
Fired when the animation property changes.
Fired when the draggable property changes.
Fired when the flat property changes.
Fired when the icon property changes.
Fired when the position property changes.
Fired when the shape property changes.
Fired when the title property changes.
Fired when the visible property changes.
Fired when the zIndex property changes.
Lifecycle Callbacks
Called when the marker instance has loaded.
Called when the component unmounts.