Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author martynasma

    (@martynasma)

    Have you tried the approach suggested in that other thread you linked to?

    You will need to define “areas” array for that. With at least “id” and “url” parameters. I.e.:

    areas:[{
      id: "US-IL", url: "https://en.wikipedia.org/wiki/Illinois"
    }, {
      id: "US-NY", url: "https://en.wikipedia.org/wiki/New_york"
    }]

    The links are opened in the same window/tab, not _blank by default.

    How can i open link in new tab or window?

    Plugin Author martynasma

    (@martynasma)

    Sorry, didn’t notice your question there.

    To make links open in a new window, use urlTarget next url:

    areas:[{
      id: "US-IL", url: "https://en.wikipedia.org/wiki/Illinois", urlTarget: "_blank"
    }, {
      id: "US-NY", url: "https://en.wikipedia.org/wiki/New_york", urlTarget: "_blank"
    }]

    https://docs.amcharts.com/3/javascriptmaps/MapArea#urlTarget

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘onclick link redirect’ is closed to new replies.