map marker add both popup and link
-
Hi,
I am trying to add read more link to my popup as you see on the page. I write this on mapmarkerpro.jsvar sectionLink = L.DomUtil.create(“div”, “mmp-popup-location”);
var readMore = L.DomUtil.create(“a”, null, sectionLink);
readMore.href = t.link;
readMore.target = “_blank”;
readMore.innerHTML = ” read more “;
sectionLink = readMore;
r.appendChild(sectionLink);which adds the link successfully, but I have two problems:
First: if I add link to the marker the popup doesn’t show any more, it goes directly to the link.
Second: readMore.href = t.link; doesn’t get the link from the DB. Actually it displays img.
Please help me to fix the issue and THANKSThe page I need help with: [log in to see the link]
- The topic ‘map marker add both popup and link’ is closed to new replies.