<?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 Marker Symbols from HTML String? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/marker-symbols-from-html-string/m-p/512407#M47751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the Leaflet API there is&amp;nbsp;the L.divIcon that allows you to utilize an HTML DIV as the marker icon/symbol.&amp;nbsp; Is there a similar functionality with the ArcGIS JS 4.6 API?&amp;nbsp; We are trying to make the transition from Leaflet to ArcGIS JS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;marker icon contains a combination of custom fonts (symbol &amp;amp; text) to generate a weather station plot (see image below).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following HTML string is&amp;nbsp;built for each marker icon and styled with CSS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stnPlot = "&amp;lt;div style='position:absolute;width:80px;height:80px;'&amp;gt;";&lt;BR /&gt;stnPlot += " &amp;lt;div class='temp'&amp;gt;" + temp + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='dew'&amp;gt;" + td + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='rh'&amp;gt;" + rh + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='gust'&amp;gt;" + Math.round(gust) + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='slp'&amp;gt;" + Math.round(gust) + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='windbarb-container'&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='windbarb' style='top:" + top + "px;left:" + left + "px;transform:rotate(" + dir + "deg);font-weight:bold;'&amp;gt;" + windStr + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='wx-center'&amp;gt;+&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += "&amp;lt;/div&amp;gt;";&lt;/P&gt;&lt;P&gt;return stnPlot;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above HTML generates the icon below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="124" src="https://community.esri.com/legacyfs/online/399252_screenshot-dev.wrh.noaa.gov-2018.03.19-10-35-29.png" width="168" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the ArcGIS JS 4.6 API can replicate this functionality and I just missed it.&amp;nbsp; I would appreciate if someone could point me toward a particular Marker or Symbol layer that could&amp;nbsp;do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate an insights someone may have!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2018 16:46:43 GMT</pubDate>
    <dc:creator>ChadKahler</dc:creator>
    <dc:date>2018-03-19T16:46:43Z</dc:date>
    <item>
      <title>Marker Symbols from HTML String?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/marker-symbols-from-html-string/m-p/512407#M47751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the Leaflet API there is&amp;nbsp;the L.divIcon that allows you to utilize an HTML DIV as the marker icon/symbol.&amp;nbsp; Is there a similar functionality with the ArcGIS JS 4.6 API?&amp;nbsp; We are trying to make the transition from Leaflet to ArcGIS JS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;marker icon contains a combination of custom fonts (symbol &amp;amp; text) to generate a weather station plot (see image below).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following HTML string is&amp;nbsp;built for each marker icon and styled with CSS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stnPlot = "&amp;lt;div style='position:absolute;width:80px;height:80px;'&amp;gt;";&lt;BR /&gt;stnPlot += " &amp;lt;div class='temp'&amp;gt;" + temp + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='dew'&amp;gt;" + td + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='rh'&amp;gt;" + rh + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='gust'&amp;gt;" + Math.round(gust) + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='slp'&amp;gt;" + Math.round(gust) + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='windbarb-container'&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='windbarb' style='top:" + top + "px;left:" + left + "px;transform:rotate(" + dir + "deg);font-weight:bold;'&amp;gt;" + windStr + "&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += " &amp;lt;div class='wx-center'&amp;gt;+&amp;lt;/div&amp;gt;";&lt;BR /&gt; stnPlot += "&amp;lt;/div&amp;gt;";&lt;/P&gt;&lt;P&gt;return stnPlot;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above HTML generates the icon below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="124" src="https://community.esri.com/legacyfs/online/399252_screenshot-dev.wrh.noaa.gov-2018.03.19-10-35-29.png" width="168" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the ArcGIS JS 4.6 API can replicate this functionality and I just missed it.&amp;nbsp; I would appreciate if someone could point me toward a particular Marker or Symbol layer that could&amp;nbsp;do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate an insights someone may have!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 16:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/marker-symbols-from-html-string/m-p/512407#M47751</guid>
      <dc:creator>ChadKahler</dc:creator>
      <dc:date>2018-03-19T16:46:43Z</dc:date>
    </item>
  </channel>
</rss>

