Disable popup window while using the measure tool in leaflet
问题 I am using a measure plugin tool in leaflet but when I try to measure between markers the pop up window interfers is there a way to fix this? I read something about oddclicks, I tried using that to no avail. $(".leaflet-control-measure").click(function() { var oddClick = $(this).data("oddClick"); $(this).data("oddClick", !oddClick); if (!oddClick) { map.off('click', popup); } else { map.on('click', popup); } }); popup logic- I am reading from a database, the popup is called from python in a