• Hi, first of all, thank you for this plugin, it’s great!

    One thing I miss in the plugin and I use a lot is that the marker had a link and when you click on it link opens in new tab.

    I have to add it manually in a script like this:


    marker.on('click', function () {
    window.open("https://domain.com/");
    });

    It would be great if the marker shortcode had a param link like this:
    [leaflet-marker link=”#”]

    I hope you like this suggestion and implement it.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor hupe13

    (@hupe13)

    Try this:

    [leaflet-marker lat=... lng=...]<a href="https://domain.com" target="_blank">marker description</a>[/leaflet-marker]
    Thread Starter covalenciawebs

    (@cowalenciawebs)

    Hi, thank you for your answer. I have try it, but with this shortcode when you click the marker it shows the popup with the link and then you must click the link. What I do is link directly to the url, without popup.

    Plugin Contributor hupe13

    (@hupe13)

    There is an example on my website: Turn map marker into url link

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add link to marker shortcode’ is closed to new replies.