I'm trying to make geosearch work with a custom marker\popup click event, i have leaflet working fine with my marker and event listener but i can't seem to figure out how to reuse the same with geosearch, even if i use popupFormat i can't add an event listener to the marker and even if it's runs the right css code the second time i click the marker it just shows an empty leaflet popup instead of running popupFormat so i'm confused and out of ideas here.
I think you should configure leaflet-gesearch to not add a marker with showMarker: false, and then listen to the geosearch/showlocation event to handle your own marker logic.
Hi,
I'm trying to make geosearch work with a custom marker\popup click event, i have leaflet working fine with my marker and event listener but i can't seem to figure out how to reuse the same with geosearch, even if i use popupFormat i can't add an event listener to the marker and even if it's runs the right css code the second time i click the marker it just shows an empty leaflet popup instead of running popupFormat so i'm confused and out of ideas here.
Please suggest if this is possible.