<?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: UpdateOverlay in MapTool not working with text graphics in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1206519#M8656</link>
    <description>&lt;P&gt;Thanks for the suggestion, I'll go with this for the time being.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 20:28:05 GMT</pubDate>
    <dc:creator>RichardOxales</dc:creator>
    <dc:date>2022-08-25T20:28:05Z</dc:date>
    <item>
      <title>UpdateOverlay in MapTool not working with text graphics</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1204379#M8611</link>
      <description>&lt;P&gt;I'm creating a Map Tool that displays a preview graphic drawn that follows the mouse. It will include some text that moves along with it displaying the measured length. The text displays fine when it's first added using AddOverlay and using the geometry of the feature I'll be placing (in this case, a line), however, using UpdateOverlay with new geometry makes the text look like the geometry of the feature instead of text.&lt;/P&gt;&lt;P&gt;With a line for example, UpdateOverlay makes the text looks like a thin black line on top of the red line being placed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardOxales_1-1660870806643.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48958i7C318DA6C5DB4908/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardOxales_1-1660870806643.png" alt="RichardOxales_1-1660870806643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the effect I'd like to achieve:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardOxales_0-1660870730058.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48957i1E6EB7F6A368A058/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardOxales_0-1660870730058.png" alt="RichardOxales_0-1660870730058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can make the text display properly by disposing and re-adding the graphic into the overlay when the user moves their mouse, but this causes the text to flicker while the mouse is moving, which isn't ideal. The red line does not flicker when using UpdateOverlay. Both, the line and text, use the same geometry for the update.&lt;/P&gt;&lt;P&gt;Is there currently a way around this?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 14:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1204379#M8611</guid>
      <dc:creator>RichardOxales</dc:creator>
      <dc:date>2022-08-19T14:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateOverlay in MapTool not working with text graphics</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1205125#M8627</link>
      <description>&lt;P&gt;Richard, this is definitely a bug. We'll try to get this addressed for 3.1. The workaround would be to delete and re-add which I realize is not optimal.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 19:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1205125#M8627</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-08-22T19:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateOverlay in MapTool not working with text graphics</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1205955#M8644</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/322017"&gt;@RichardOxales&lt;/a&gt;&amp;nbsp;thanks for pointing this out.&amp;nbsp; I tried a few workarounds for this issue and the only one that i deem acceptable is using an embedded [overlay] control in the tool that does the mouse move tracking.&amp;nbsp; However, the UI will look a bit different, but on the other hand is easier to read:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1661361523048.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49323i8238B947310A8153/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1661361523048.png" alt="Wolf_0-1661361523048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is no screen flashing (caused by delete/add of text graphics).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_1-1661361599151.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49324i1B28B3B32F419177/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_1-1661361599151.png" alt="Wolf_1-1661361599151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attached my sample code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 17:22:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1205955#M8644</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-08-24T17:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateOverlay in MapTool not working with text graphics</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1206519#M8656</link>
      <description>&lt;P&gt;Thanks for the suggestion, I'll go with this for the time being.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 20:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/updateoverlay-in-maptool-not-working-with-text/m-p/1206519#M8656</guid>
      <dc:creator>RichardOxales</dc:creator>
      <dc:date>2022-08-25T20:28:05Z</dc:date>
    </item>
  </channel>
</rss>

