In my application I am using leaflet popup to display more details regarding the marker (Vehicle). User should be able to collapse and expand the popup.
Fist user click on the marker it will display the pop as
When click on collapse button, popup content will be collapse using jquary. But it will not pointed to marker correctly.
To do this I only change the css on the popup content using jqury. My collapse function be like.
function collapseDetail() {
$("#serviceTable").css("display", "none");
$("#serviceDataDownIcon").show();
$("#serviceDataUpIcon").hide();
}
How can I avoid this and pointed the popup to the marker correctly ?