<?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: MapTool.UpdateOverlay - No Overload with referenceScale parameter in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049981#M6478</link>
    <description>&lt;P&gt;Hey Charlie,&lt;/P&gt;&lt;P&gt;how do I get a reference to the graphics layer?&lt;/P&gt;&lt;P&gt;In my case I am just using a custom map tool where I call AddOverlay or UpdateOverlay, I did not explicitly add a graphics layer to my map. The map therefore does not contain a graphics layer in the layer enumeration and map.TargetGraphicsLayer is also null.&lt;/P&gt;&lt;P&gt;I guess there is some kind of hidden graphics layer where the graphics are added by the AddOverlay or UpdateOverlay methods but neither on the map nor on the cimmap I can find a possibility to get a reference to the graphics layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 07:41:28 GMT</pubDate>
    <dc:creator>ChristianSchneider1</dc:creator>
    <dc:date>2021-04-22T07:41:28Z</dc:date>
    <item>
      <title>MapTool.UpdateOverlay - No Overload with referenceScale parameter</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1048570#M6453</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have written a custom maptool where I use overlays to show graphic information on a map view.&lt;/P&gt;&lt;P data-unlink="true"&gt;In the OnToolActivateAsync I call the AddOverlay method to add the graphic overlay and in my OnToolMouseMove I call the UpdateOverlay method. To this point, everything worked fine.&lt;/P&gt;&lt;P data-unlink="true"&gt;But know I had the requirement that the overlay symbol should scale according to some reference scale.&lt;/P&gt;&lt;P data-unlink="true"&gt;In the API there is a overload for the AddOverlay method where I can set the reference scale:&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/index.html#topic27602.html" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/index.html#topic27602.html&lt;/A&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;But there is no similar overload for the UpdateOverlay method!&lt;/P&gt;&lt;P data-unlink="true"&gt;The result is now that when the tool is activated, the graphic is scaled accoring to my reference scale but as I move the mouse, the reference scale setting is lost and the overlay graphics becomes bigger.&lt;BR /&gt;&lt;BR /&gt;I helped myself with destroying the overlay with Dispose and calling AddOverlay with the reference scale parameter in the OnToolMouseMove but that causes a slight flickering of my overlay graphic.&lt;/P&gt;&lt;P data-unlink="true"&gt;Is there a better way to do this?&lt;/P&gt;&lt;P data-unlink="true"&gt;Why is there no overload for UpdateOverlay with a reference scale parameter?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 15:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1048570#M6453</guid>
      <dc:creator>ChristianSchneider1</dc:creator>
      <dc:date>2021-04-19T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool.UpdateOverlay - No Overload with referenceScale parameter</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049214#M6467</link>
      <description>&lt;P&gt;Hi Christian,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I don't think there is a better way of accomplishing what you're attempting to do right now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll add an issue to include an overload for UpdateOverlay on the MapTool and the MapView objects to include the reference scale parameter.&amp;nbsp; These will be in the next release of ArcGIS Pro.&amp;nbsp; Since 2.8 is very close to being released, these methods will be added at the 2.9 release.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 16:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049214#M6467</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-04-20T16:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool.UpdateOverlay - No Overload with referenceScale parameter</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049406#M6469</link>
      <description>&lt;P&gt;GraphicsLayer has a reference scale fyi. That is probably the better option.&lt;/P&gt;&lt;P&gt;Set it via the CIM. Something along the lines of.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var def = graphicsLayer.GetDefinition() as CIMGraphicsLayer;&lt;/P&gt;&lt;P&gt;def.ReferenceScale = 1000.0; //eg 1:1000&lt;/P&gt;&lt;P&gt;graphicsLayer.SetDefinition(def);&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 23:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049406#M6469</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-04-20T23:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool.UpdateOverlay - No Overload with referenceScale parameter</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049978#M6477</link>
      <description>&lt;P&gt;Thank you very much Narelle!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 07:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049978#M6477</guid>
      <dc:creator>ChristianSchneider1</dc:creator>
      <dc:date>2021-04-22T07:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool.UpdateOverlay - No Overload with referenceScale parameter</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049981#M6478</link>
      <description>&lt;P&gt;Hey Charlie,&lt;/P&gt;&lt;P&gt;how do I get a reference to the graphics layer?&lt;/P&gt;&lt;P&gt;In my case I am just using a custom map tool where I call AddOverlay or UpdateOverlay, I did not explicitly add a graphics layer to my map. The map therefore does not contain a graphics layer in the layer enumeration and map.TargetGraphicsLayer is also null.&lt;/P&gt;&lt;P&gt;I guess there is some kind of hidden graphics layer where the graphics are added by the AddOverlay or UpdateOverlay methods but neither on the map nor on the cimmap I can find a possibility to get a reference to the graphics layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 07:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1049981#M6478</guid>
      <dc:creator>ChristianSchneider1</dc:creator>
      <dc:date>2021-04-22T07:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool.UpdateOverlay - No Overload with referenceScale parameter</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1050831#M6497</link>
      <description>&lt;P&gt;you would need to explicitly create one (or the user could add one via the UI).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a GraphicsLayer to the map, see here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-GraphicsLayers#create-graphicslayer" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-GraphicsLayers#create-graphicslayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;More details on GraphicsLayer can also be found here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-GraphicsLayers" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-GraphicsLayers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 18:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1050831#M6497</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-04-23T18:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: MapTool.UpdateOverlay - No Overload with referenceScale parameter</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1108422#M7244</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to confirm that an UpdateOverlay overload has been added to the MapTool and MapView classes to include a reference scale parameter at ArcGIS Pro 2.9.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 14:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updateoverlay-no-overload-with/m-p/1108422#M7244</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-10-18T14:40:11Z</dc:date>
    </item>
  </channel>
</rss>

