<?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: How do I resize symbols from a 2525 dictionary renderer? in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110929#M4449</link>
    <description>&lt;P&gt;That just cleaned up about 130 lines of janky workaround to resize the symbols&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 17:00:43 GMT</pubDate>
    <dc:creator>TroyFoster</dc:creator>
    <dc:date>2021-10-25T17:00:43Z</dc:date>
    <item>
      <title>How do I resize symbols from a 2525 dictionary renderer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110255#M4446</link>
      <description>&lt;P&gt;I finally got my runtime qt app converted over from 100.4 to 100.11.&amp;nbsp; I remember from one of the devsummit briefs that 2525 dictionary symbols were able to be resized in a later release. Is there a sample or code snippet displaying how to resize those dictionary symbols?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 14:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110255#M4446</guid>
      <dc:creator>TroyFoster</dc:creator>
      <dc:date>2021-10-22T14:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resize symbols from a 2525 dictionary renderer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110376#M4447</link>
      <description>&lt;P&gt;There is no sample at the moment. Here is the doc -&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-dictionaryrenderer.html#setScaleExpression" target="_blank"&gt;https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-dictionaryrenderer.html#setScaleExpression&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example we have in our tests:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;// Simple case... double the size 
ArcadeExpression* arcadeExpression = new ArcadeExpression("2", this);
dictionaryRenderer-&amp;gt;setScaleExpression(arcadeExpression);

// More advanced case... double the size if the identity_code attribute is 4
ArcadeExpression* arcadeExpression = new ArcadeExpression("iif($feature.Identity_code == 4, 2,1)", this);
dictionaryRenderer-&amp;gt;setScaleExpression(arcadeExpression);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an Arcade reference you can use to write your expressions -&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/" target="_blank"&gt;https://developers.arcgis.com/arcade/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 18:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110376#M4447</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-10-22T18:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resize symbols from a 2525 dictionary renderer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110383#M4448</link>
      <description>&lt;P&gt;Hi Troy.&amp;nbsp; Yes, as Lucas mentioned, there is a new `scaleExpression` method on the Dictionary Renderer that can accept either a constant or an Arcade expression.&amp;nbsp; &amp;nbsp;So it doesn't set your symbol to a specific size, but you can scale all symbols based on a specific value, or use the expression to scale based on an attribute, map scale, etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 18:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110383#M4448</guid>
      <dc:creator>KerryRobinson</dc:creator>
      <dc:date>2021-10-22T18:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resize symbols from a 2525 dictionary renderer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110929#M4449</link>
      <description>&lt;P&gt;That just cleaned up about 130 lines of janky workaround to resize the symbols&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 17:00:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1110929#M4449</guid>
      <dc:creator>TroyFoster</dc:creator>
      <dc:date>2021-10-25T17:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resize symbols from a 2525 dictionary renderer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1233155#M4792</link>
      <description>&lt;P&gt;I'm using ArcGis 100.15(Qt) but I'm not able to use 'scaleExpression",&amp;nbsp;&lt;/P&gt;&lt;P&gt;to be clearer:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm able to put on the map graphical elements from dictionarySymbolStyle(created with mil2525d.stylx),&lt;/LI&gt;&lt;LI&gt;Symbols generated from dictionarySymbolStyle are rendered inside a&amp;nbsp;GraphicsOverlay by using a Graphic object&lt;/LI&gt;&lt;LI&gt;the GraphicsOverlay object is rendered (setRenderer) with&amp;nbsp;DictionaryRenderer create with dictionarySymbolStyle (at point 1)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But if I try to use:&lt;/P&gt;&lt;P&gt;ArcadeExpression* arcadeExpression = new ArcadeExpression("2", this);&lt;BR /&gt;renderer-&amp;gt;setScaleExpression(arcadeExpression);&lt;/P&gt;&lt;P&gt;nothing happens on the screen, the symbol is always drawn with default dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tryed to setScaleExpression during initialization and during runtime, but also the same result!&lt;/P&gt;&lt;P&gt;Do you have some advice?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 10:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1233155#M4792</guid>
      <dc:creator>VittorioBarulli</dc:creator>
      <dc:date>2022-11-18T10:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resize symbols from a 2525 dictionary renderer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1233164#M4793</link>
      <description>&lt;P&gt;It' funny,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution just after my question.&lt;BR /&gt;The issue was that I used fetchSymbol to create the symbol inside the Graphics.&lt;BR /&gt;Instead, the correct way is to fill attribute() of the Graphics with proper properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 11:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1233164#M4793</guid>
      <dc:creator>VittorioBarulli</dc:creator>
      <dc:date>2022-11-18T11:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resize symbols from a 2525 dictionary renderer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1235740#M4795</link>
      <description>&lt;P&gt;Hi- If you don't need to set the scale based on an attribute value, you can also just use a constant value for setScaleExpression, like this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;renderer-&amp;gt;setScaleExpression(2);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Otherwise, yes, you can set the attribute of the graphic and use that in an arcade expression to set the scale.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 02:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/how-do-i-resize-symbols-from-a-2525-dictionary/m-p/1235740#M4795</guid>
      <dc:creator>KerryRobinson</dc:creator>
      <dc:date>2022-11-29T02:25:52Z</dc:date>
    </item>
  </channel>
</rss>

