I’d like to have the Map List scroll to the selected item when it is clicked on the map, however I can’t figure out what to listen for, or how to add the listener. I think an event on popup open would work for my purposes.
Is there any documentation on the events and how to add these listeners?
Thanks for the getting back to me. I ended up getting it to work by just adding my own click event listener to the markers themselves.
$('.leaflet-marker-pane').on('click','.leaflet-data-marker', markerClicked );
function markerClicked(){
// set delay to allow selector to be updated
setTimeout( function (){
var item = document.querySelector('.mapp-item.mapp-selected');
scrollInnerIntoView( item );
}, 50);
}