Problem
createAmplifyGeocoder function instantiates MaplibreGeocoder which supports event listeners, but createAmplifyGeocoder itself does not enable the event listener feature.
I hope createAmplifyGeocoder could allow me to add event listeners, like the example from react-map-gl does.
Context
I am using Amplify UI LocationSearch component. It allows me to customize the marker pop-up but only in Vanilla Javascript. I hope I could customize the popup with buttons which updates React state on click.