I use leaflet search control and i hide all the points in geojson layer(i set them to transparent and i reduce marker size). Then in leaflet-search.js i add custom marker to put on the map when location is found : Line 89( https://github.com/stefanocudini/leaflet-search/blob/master/src/leaflet-search.js )
marker: {
icon: L.AwesomeMarkers.icon({
icon: 'fas fa-sign-in-alt',
prefix: 'fa',
markerColor: 'orange'
})
}
Is there a way to bind popup to marker that is put on the map by leaflet-search.js?
This is how you bind a popup to marker with Leaflet
If you need to do it otherwise please provide your full code