<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Point popup hyperlink in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-popup-hyperlink/m-p/331914#M30690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, i've managed to get it working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2019 18:05:48 GMT</pubDate>
    <dc:creator>ScottWilson2</dc:creator>
    <dc:date>2019-12-02T18:05:48Z</dc:date>
    <item>
      <title>Point popup hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-popup-hyperlink/m-p/331912#M30688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a map with multiple points, when i click on a point i get a&amp;nbsp;pointInfoTemplate popup.&amp;nbsp; I'm experimenting with adding my own hyperlink into this popup.&amp;nbsp; So far, i've only been able to add the hyperlink into the&amp;nbsp;title area which says 'click me'.&amp;nbsp; I would like to add the hyperlink below the header, somewhere in the content pane, is that possible?&amp;nbsp; If so, what could should i use?&amp;nbsp; I've copied the snippet below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="475056" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/475056_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;CODE class=""&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px;"&gt;for&lt;/SPAN&gt; &lt;SPAN class="" style="color: #dd4a68; border: 0px;"&gt;each&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px;"&gt;var&lt;/SPAN&gt; item &lt;SPAN class="" style="color: #0077aa; border: 0px;"&gt;in&lt;/SPAN&gt; apiData.items&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px;"&gt;{&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;SPAN class="" style="color: #999999; border: 0px;"&gt;var x = item.geometry.x;
var y = item.geometry.y;
var point = new Point(x, y, spatial);

 var pointAttributes = { Location: "item.attributes.LOCATION", Type: "item.attributes.BinType" };
 
 var pointInfoTemplate = new InfoTemplate("item.attributes.LOCATION&amp;lt;br/&amp;gt;&amp;lt;a class='clickMe' href='#' onclick='alert(item.geometry.x + \", \" + item.geometry.y);return false'&amp;gt;click me&amp;lt;/a&amp;gt;"); 
 var pointGraphic = new Graphic(point, pictureSymbol, pointAttributes, pointInfoTemplate);
  
 map.graphics.add(pointGraphic);
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE class=""&gt;&lt;SPAN class="" style="color: #999999; border: 0px;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-popup-hyperlink/m-p/331912#M30688</guid>
      <dc:creator>ScottWilson2</dc:creator>
      <dc:date>2021-12-11T15:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Point popup hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-popup-hyperlink/m-p/331913#M30689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In your code the only thing you are specifying in the InfoTemplate constructor is the title. That is why your link is appearing in the title.&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pointInfoTemplate &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;InfoTemplate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"item.attributes.LOCATION&amp;lt;br/&amp;gt;&amp;lt;a class='clickMe' href='#' onclick='alert(item.geometry.x + \", \" + item.geometry.y);return false'&amp;gt;click me&amp;lt;/a&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you add a second string parameter in the constructor then you will be specifying the templates actual content.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/infotemplate-amd.html#infotemplate2" title="https://developers.arcgis.com/javascript/3/jsapi/infotemplate-amd.html#infotemplate2"&gt;https://developers.arcgis.com/javascript/3/jsapi/infotemplate-amd.html#infotemplate2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 17:42:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-popup-hyperlink/m-p/331913#M30689</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-12-02T17:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Point popup hyperlink</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-popup-hyperlink/m-p/331914#M30690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, i've managed to get it working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 18:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-popup-hyperlink/m-p/331914#M30690</guid>
      <dc:creator>ScottWilson2</dc:creator>
      <dc:date>2019-12-02T18:05:48Z</dc:date>
    </item>
  </channel>
</rss>

