<?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: display xy without creating a feature layer in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/display-xy-without-creating-a-feature-layer/m-p/1291078#M9832</link>
    <description>&lt;P&gt;You can look at this community sample:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/24c3224cc4566ab69c77b0bff40bff025628a341/Map-Authoring/GraphicsLayers" target="_blank"&gt;arcgis-pro-sdk-community-samples/Map-Authoring/GraphicsLayers at 24c3224cc4566ab69c77b0bff40bff025628a341 · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It contains code to create a graphics layer (see AddGraphicsLayer.cs) and the code to add a point to that graphic layer (see&amp;nbsp;GraphicCreationTools/PointGraphic.cs).&lt;/P&gt;&lt;P&gt;The ProConcepts document for graphics layers is here:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-GraphicsLayers" target="_blank"&gt;ProConcepts GraphicsLayers · Esri/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 14:57:50 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-05-19T14:57:50Z</dc:date>
    <item>
      <title>display xy without creating a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/display-xy-without-creating-a-feature-layer/m-p/1291059#M9831</link>
      <description>&lt;P&gt;hi, is it possible to display a xy without creating a feature layer? From an api call I get the xy information, and I want to show where they are located on the map in AGP. But I don’t what to create a feature layer, because the user are going to use the function multiply times, and I don’t want the TOC to be&amp;nbsp;flooded with feature layers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 14:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/display-xy-without-creating-a-feature-layer/m-p/1291059#M9831</guid>
      <dc:creator>Daniel4</dc:creator>
      <dc:date>2023-05-19T14:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: display xy without creating a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/display-xy-without-creating-a-feature-layer/m-p/1291078#M9832</link>
      <description>&lt;P&gt;You can look at this community sample:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/24c3224cc4566ab69c77b0bff40bff025628a341/Map-Authoring/GraphicsLayers" target="_blank"&gt;arcgis-pro-sdk-community-samples/Map-Authoring/GraphicsLayers at 24c3224cc4566ab69c77b0bff40bff025628a341 · Esri/arcgis-pro-sdk-community-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It contains code to create a graphics layer (see AddGraphicsLayer.cs) and the code to add a point to that graphic layer (see&amp;nbsp;GraphicCreationTools/PointGraphic.cs).&lt;/P&gt;&lt;P&gt;The ProConcepts document for graphics layers is here:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-GraphicsLayers" target="_blank"&gt;ProConcepts GraphicsLayers · Esri/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 14:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/display-xy-without-creating-a-feature-layer/m-p/1291078#M9832</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-05-19T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: display xy without creating a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/display-xy-without-creating-a-feature-layer/m-p/1292704#M9848</link>
      <description>&lt;P&gt;You can also use an extension method on the MapView class: AddOverlay to add a Symbol (point, line, polygon) to a MapView's grphic overlay.&amp;nbsp; &amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic9965.html" target="_blank"&gt;AddOverlay Method (MappingExtensions)—ArcGIS Pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the documentation on Graphic Overlays for MapView:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Exploration#mapview-graphic-overlay" target="_blank"&gt;ProConcepts Map Exploration · Esri/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;  private IDisposable _graphic = null; //defined elsewhere

  // Add point graphic to the overlay at the center of the mapView
  // Note: Run within QueuedTask.Run
  _graphic = mapView.AddOverlay(mapView.Extent.Center, 
               SymbolFactory.Instance.ConstructPointSymbol(
                 ColorFactory.Instance.RedRGB, 40.0, SimpleMarkerStyle.Star).MakeSymbolReference());

  // Note: Update graphic using UpdateOverlay
  // mapView.UpdateOverlay(_graphic,...);

  _graphic.Dispose(); //Removes the graphic&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/display-xy-without-creating-a-feature-layer/m-p/1292704#M9848</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-05-24T17:58:14Z</dc:date>
    </item>
  </channel>
</rss>

