<?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 How to get individual graphic symbol size when Smart Mapping - Counts and Amounts (By Size) is used in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-individual-graphic-symbol-size-when/m-p/60846#M5336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2525"&gt;Kelly Hutchins&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we apply smart mapping style - Counts and Amounts (By Size) to a point layer (without any classes defined), we are not able to interrogate the size of the graphic symbol. We were expecting&amp;nbsp; the layer's renderer info to have this information. However, the closest thing we could find are only the parameters used by the style i.e., minDatavalue, maxDatavalue, minSize and maxSize in renderer -&amp;gt; visualVariables. The actual size that is used to display the graphic is not listed in the rendererInfo anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to identify the size of a graphic symbol in order to show a cyan colored square selection symbol that is slightly larger than the graphic's symbol, the way it is displayed in ArcGIS Map Viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cyan colored square selection graphic is added to separate graphic layer on top of the feature layer.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We cannot use the popup to do this as we need to display the popup contents in a custom way in a side panel.&lt;/LI&gt;&lt;LI&gt;We also cannot directly get the graphic's size from the graphic available in feature layer (using getnode) because the graphic is not&amp;nbsp; guaranteed to be always present in featurelayer as its loaded in On-Demand mode.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to find out the feature's graphic symbol size? or maybe calculate the size based on parameters defined in rendererInfo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample webmap that uses this style.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/webmap/viewer.html?webmap=3f9fc16b8ab94b0698c738a0c9a71c72" title="http://www.arcgis.com/home/webmap/viewer.html?webmap=3f9fc16b8ab94b0698c738a0c9a71c72"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=3f9fc16b8ab94b0698c738a0c9a71c72&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106014" alt="sm.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/106014_sm.PNG" style="width: 620px; height: 372px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2015 19:27:04 GMT</pubDate>
    <dc:creator>sumitzarkar</dc:creator>
    <dc:date>2015-06-02T19:27:04Z</dc:date>
    <item>
      <title>How to get individual graphic symbol size when Smart Mapping - Counts and Amounts (By Size) is used</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-individual-graphic-symbol-size-when/m-p/60846#M5336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2525"&gt;Kelly Hutchins&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we apply smart mapping style - Counts and Amounts (By Size) to a point layer (without any classes defined), we are not able to interrogate the size of the graphic symbol. We were expecting&amp;nbsp; the layer's renderer info to have this information. However, the closest thing we could find are only the parameters used by the style i.e., minDatavalue, maxDatavalue, minSize and maxSize in renderer -&amp;gt; visualVariables. The actual size that is used to display the graphic is not listed in the rendererInfo anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to identify the size of a graphic symbol in order to show a cyan colored square selection symbol that is slightly larger than the graphic's symbol, the way it is displayed in ArcGIS Map Viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cyan colored square selection graphic is added to separate graphic layer on top of the feature layer.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We cannot use the popup to do this as we need to display the popup contents in a custom way in a side panel.&lt;/LI&gt;&lt;LI&gt;We also cannot directly get the graphic's size from the graphic available in feature layer (using getnode) because the graphic is not&amp;nbsp; guaranteed to be always present in featurelayer as its loaded in On-Demand mode.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to find out the feature's graphic symbol size? or maybe calculate the size based on parameters defined in rendererInfo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample webmap that uses this style.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/webmap/viewer.html?webmap=3f9fc16b8ab94b0698c738a0c9a71c72" title="http://www.arcgis.com/home/webmap/viewer.html?webmap=3f9fc16b8ab94b0698c738a0c9a71c72"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=3f9fc16b8ab94b0698c738a0c9a71c72&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106014" alt="sm.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/106014_sm.PNG" style="width: 620px; height: 372px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-individual-graphic-symbol-size-when/m-p/60846#M5336</guid>
      <dc:creator>sumitzarkar</dc:creator>
      <dc:date>2015-06-02T19:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get individual graphic symbol size when Smart Mapping - Counts and Amounts (By Size) is used</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-individual-graphic-symbol-size-when/m-p/60847#M5337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get details about the graphic's shape using the graphic's getDojoShape() method. However in your situation I'd just let the feature layer handle this behavior. You can specify that you do not want popups to display when you click on a feature but still allow the events associated with the popup, like selecting and highlighting the feature, to occur. We have a sample in the help called &lt;A href="https://developers.arcgis.com/javascript/jssamples/popup_sidepanel.html"&gt;Popup content in side panel &lt;/A&gt;that shows this behavior. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd like to change the popup's highlight symbol you can do that too. Here's a simple sample that shows this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/zarenuhoze/1/" title="http://jsbin.com/zarenuhoze/1/"&gt;Create a Web Map&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 16:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-individual-graphic-symbol-size-when/m-p/60847#M5337</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-06-04T16:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get individual graphic symbol size when Smart Mapping - Counts and Amounts (By Size) is used</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-individual-graphic-symbol-size-when/m-p/60848#M5338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/2525"&gt;Kelly Hutchins&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using graphic.getShape() method [&lt;A href="https://developers.arcgis.com/javascript/jsapi/graphic-amd.html#getshape" title="https://developers.arcgis.com/javascript/jsapi/graphic-amd.html#getshape"&gt;Graphic | API Reference | ArcGIS API for JavaScript&lt;/A&gt; ]&amp;nbsp; we are now able to get the size of symbol, and draw desired highlight graphic on graphicsLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 07:29:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-individual-graphic-symbol-size-when/m-p/60848#M5338</guid>
      <dc:creator>sumitzarkar</dc:creator>
      <dc:date>2015-06-10T07:29:18Z</dc:date>
    </item>
  </channel>
</rss>

