I'm asking this because I have done this in Google Maps API, but haven't found any documentation for this on Mapbox API so far. I would like to be able to create functions with the geocoder marker. The closest thing I found about manipulating the marker was changing the color of the marker:
var geocoder = new MapboxGeocoder({
accessToken: mapboxgl.accessToken,
marker: {
color: 'orange'
},
mapboxgl: mapboxgl
});
However, I want to be able to reference the marker so that I can create functions based on onmouseenter and onmouseleave events. Any suggestions? Thanks a bunch.