leaflet how to make dynamic picture popup using js
问题 hello I am using leaflet to display dynamic images on a map: I have a var img which represent the url of image src var img="http://xx.xx.xx.xx/" $("<img/>").attr("src", img).appendTo("#images"); And I have a popup window(HTML) which include my images id:images var marker = L.marker([lat,lng]).bindPopup('<div id="images"></div>').addTo(map); But the picture is not showing on the popup? anyone has simply solution? thanks 回答1: My best guess is (since you didn't share your complete code and did