I'd say you should try using the onClick
callback on the maps component. Are you using Redux for your application? If you do, you can try something like this:
// in the maps component
const onMapClick = (e) => {
if (sufficient) {
dispatch(updateSomething());
}
};
return (
<GoogleMap
...otherProps
onClick={onMapClick}
>
);
Then you can use redux to control the state of your information box.
You'll need to dig a bit deeper into this because I'm not sure what the event object contains, but I think this implementation should work well for your use case.