function MapMarker(props) {
    // eslint-disable-next-line react/jsx-props-no-spreading
    return <Consumer>{context => <Marker {...props} {...context} />}</Consumer>;
}
The MapMarker component is a single section of information that is nested in the GMap component.
This component shows you the detailed information of each location that is displayed in the GMap.