<?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 get marker symbol size in 4.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-marker-symbol-size-in-4-x/m-p/376356#M34926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a point feature layer that uses a unique value renderer to symbolize by a qualitative attribute and then uses the size visual variable to make the point larger or smaller based on a quantitative attribute. I'm trying to highlight the graphic when it is moused over (essentially just change the outline color). Right now I'm doing a hittest on the view's pointer-move event and then if there's a graphic, I attempt to highlight it (I'm actually cloning the graphic, giving it a new symbol, and adding it to a separate graphicslayer). Because the layer is symbolized with a renderer, the graphic that is returned via the hittest has a symbol property of null. So, how do I figure out the size the symbol needs to be? I tried using the renderer's getUniqueValueInfo method, but returns the same size for all graphics I pass to it. Any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 14:17:18 GMT</pubDate>
    <dc:creator>BrandonFlessner</dc:creator>
    <dc:date>2018-02-28T14:17:18Z</dc:date>
    <item>
      <title>get marker symbol size in 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-marker-symbol-size-in-4-x/m-p/376356#M34926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a point feature layer that uses a unique value renderer to symbolize by a qualitative attribute and then uses the size visual variable to make the point larger or smaller based on a quantitative attribute. I'm trying to highlight the graphic when it is moused over (essentially just change the outline color). Right now I'm doing a hittest on the view's pointer-move event and then if there's a graphic, I attempt to highlight it (I'm actually cloning the graphic, giving it a new symbol, and adding it to a separate graphicslayer). Because the layer is symbolized with a renderer, the graphic that is returned via the hittest has a symbol property of null. So, how do I figure out the size the symbol needs to be? I tried using the renderer's getUniqueValueInfo method, but returns the same size for all graphics I pass to it. Any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 14:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-marker-symbol-size-in-4-x/m-p/376356#M34926</guid>
      <dc:creator>BrandonFlessner</dc:creator>
      <dc:date>2018-02-28T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: get marker symbol size in 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-marker-symbol-size-in-4-x/m-p/376357#M34927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In the 3.x API this was simple using the renderers getSymbol method:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/uniquevaluerenderer-amd.html#getsymbol" title="https://developers.arcgis.com/javascript/3/jsapi/uniquevaluerenderer-amd.html#getsymbol"&gt;https://developers.arcgis.com/javascript/3/jsapi/uniquevaluerenderer-amd.html#getsymbol&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getSymbol has not made it to 4.x so I am not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 14:49:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-marker-symbol-size-in-4-x/m-p/376357#M34927</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-28T14:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: get marker symbol size in 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-marker-symbol-size-in-4-x/m-p/376358#M34928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I know the min and max attribute values as well as the min and max symbol sizes. I've worked out a method to find the percent X of the graphic's quantitative attribute between the attribute&amp;nbsp;min and max and then find that percentage between the min and max symbol sizes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;( ( (value - attrMin) / (attrMax - attrMin)) * ( symbolMax - symbolMin) ) + symbolMin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets close, but oddly at the min and max symbol size its off slightly. I would think that under the hood the API is doing something very similar, but again it is slightly different. Anyway, this method is a close enough approximation if others run into this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:43:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-marker-symbol-size-in-4-x/m-p/376358#M34928</guid>
      <dc:creator>BrandonFlessner</dc:creator>
      <dc:date>2018-02-28T15:43:29Z</dc:date>
    </item>
  </channel>
</rss>

