<?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 Binding DOM Elements to Graphics Instead of SimpleMarkerSymbol() in ArcGIS API For JS in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/binding-dom-elements-to-graphics-instead-of/m-p/478675#M44484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Can you please let me know if it is possible to bind our custom DOM into the geometry point instead of ArcGIS API SimpleMarkerSymbol()?&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I tried to do this like this&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var point = new Point(-126.687482, 54.793577); 
var pointSymbol = '&amp;lt;div class="marker"&amp;gt;&amp;lt;/div&amp;gt;'; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;but it is not doing the job! here is the whole code&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;ar point = new Point(-126.687482, 54.793577); 
var pointSymbol = '&amp;lt;div class="marker"&amp;gt;&amp;lt;/div&amp;gt;'; 
var pointAttributes = {city: "Albuquerque", state: "New Mexico"};
var pointInfoTemplate = new InfoTemplate("Albuquerque"); 
var pointGraphic = new Graphic(point, pointSymbol, pointAttributes).setInfoTemplate(pointInfoTemplate);
&amp;nbsp; thePoints.push(pointGraphic);
&amp;nbsp; console.log(thePoints)
map.on('load', function () {
&amp;nbsp; for (i = 0; i &amp;lt; thePoints.length; ++i) {
&amp;nbsp; map.graphics.add(thePoints&lt;I&gt;);
&amp;nbsp; }
});&lt;/I&gt;&lt;/CODE&gt;&lt;I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 21:08:31 GMT</pubDate>
    <dc:creator>BruceGreen</dc:creator>
    <dc:date>2021-12-11T21:08:31Z</dc:date>
    <item>
      <title>Binding DOM Elements to Graphics Instead of SimpleMarkerSymbol() in ArcGIS API For JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/binding-dom-elements-to-graphics-instead-of/m-p/478675#M44484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Can you please let me know if it is possible to bind our custom DOM into the geometry point instead of ArcGIS API SimpleMarkerSymbol()?&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I tried to do this like this&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var point = new Point(-126.687482, 54.793577); 
var pointSymbol = '&amp;lt;div class="marker"&amp;gt;&amp;lt;/div&amp;gt;'; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;but it is not doing the job! here is the whole code&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;ar point = new Point(-126.687482, 54.793577); 
var pointSymbol = '&amp;lt;div class="marker"&amp;gt;&amp;lt;/div&amp;gt;'; 
var pointAttributes = {city: "Albuquerque", state: "New Mexico"};
var pointInfoTemplate = new InfoTemplate("Albuquerque"); 
var pointGraphic = new Graphic(point, pointSymbol, pointAttributes).setInfoTemplate(pointInfoTemplate);
&amp;nbsp; thePoints.push(pointGraphic);
&amp;nbsp; console.log(thePoints)
map.on('load', function () {
&amp;nbsp; for (i = 0; i &amp;lt; thePoints.length; ++i) {
&amp;nbsp; map.graphics.add(thePoints&lt;I&gt;);
&amp;nbsp; }
});&lt;/I&gt;&lt;/CODE&gt;&lt;I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/binding-dom-elements-to-graphics-instead-of/m-p/478675#M44484</guid>
      <dc:creator>BruceGreen</dc:creator>
      <dc:date>2021-12-11T21:08:31Z</dc:date>
    </item>
  </channel>
</rss>

