• Hi,
    I am trying to add read more link to my popup as you see on the page. I write this on mapmarkerpro.js

    var 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 THANKS

    • This topic was modified 4 years, 11 months ago by R.Amin.

    The 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.