<?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: Select features within a drawing area in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2104#M22</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, that is exactly I'm looking for. CPU&amp;nbsp;performance is pretty the same, but there is helpful&amp;nbsp;addition like undo manager. The only concern is how to tweak color/style of the geometries? For example while creating graphics manually, I'm able to tweak &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;AGSSimpleFillSymbol&lt;/SPAN&gt;&amp;nbsp;style, color and outline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Feb 2020 11:23:53 GMT</pubDate>
    <dc:creator>SerhiiKyrylenko</dc:creator>
    <dc:date>2020-02-14T11:23:53Z</dc:date>
    <item>
      <title>Select features within a drawing area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2101#M19</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;There is need to be able to draw a polygon/rectangle on the map in order to select intersecting features with that drawing. I can see from the &lt;A href="https://developers.arcgis.com/net/10-2/sample-code/FeatureLayerSelection/"&gt;Feature Layer Selection Runtime SDK for .NET example&lt;/A&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; font-size: 16px;"&gt;The sample uses the MapView.RequestShapeAsync method to allow the user to draw a selection rectangle intersecting features that he would like to manage.Once the selection rectangle is returned, a SpatialQueryFilter is used to spatially select features in the feature layer using FeatureLayer.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Specifically&amp;nbsp;&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; rect &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Editor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;RequestShapeAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;DrawShape&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Rectangle&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I can't find any similar Editor of the MapView for the iOS version of the SDK.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/ios/latest/swift/sample-code/feature-layer-selection/"&gt;Feature Layer Selection Runtime SDK for iOS&amp;nbsp;example&lt;/A&gt;&amp;nbsp;only provides the solution how to select feature by tap point&amp;nbsp;but not by drawing graphics area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to achieve basic functionality as &lt;A href="https://esri.maps.arcgis.com/apps/opsdashboard/index.html#/d7661e36aead42208f4faec23dc78235"&gt;this dashboard&lt;/A&gt; provides. User&amp;nbsp;can select features not only by point but also by rectangle, lasso, circle and line. Is there any&amp;nbsp;solution or starting point for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example of selection by rectangle area" class="jive-emoji image-1 jive-image j-img-centered j-img-original" src="https://community.esri.com/legacyfs/online/482071_Rectangular_selection.png" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 12px;"&gt;example of selected features by rectangle selection&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 07:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2101#M19</guid>
      <dc:creator>SerhiiKyrylenko</dc:creator>
      <dc:date>2020-02-13T07:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select features within a drawing area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2102#M20</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently I'm leveraging on&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;AGSGeoViewTouchDelegate.&amp;nbsp;&lt;/SPAN&gt;Specifically on&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;didTouchDownAtScreenPoint&lt;/SPAN&gt; and other methods in order to manually draw geometry on the map. Since there are a lot of map points received by delegate method, they are normalised to rectangle instead of polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also worse to mention, in order to draw the user's choice rectangle in real time, &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;AGSGraphics&lt;/SPAN&gt; object is repeatedly&amp;nbsp;deleting and adding from&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;AGSGraphicsOverlay&lt;/SPAN&gt; object during the each &amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;didTouchDragToScreenPoint&lt;/SPAN&gt; method call&amp;nbsp;like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;        graphicsOverlay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeAllObjects&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        graphicsOverlay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polygonGraphic&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...where &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;polygonGraphic&lt;/SPAN&gt; is normalised rectangle (4 &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;AGSPoint &lt;/SPAN&gt;objects)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, but my concern is about CPU usage. During creating selection rectangle on the map, CPU usage can be up to 30% for my current iOS device. It's not that big in comparison if the user scales or moving area of the map that will use 80+% of CPU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2102#M20</guid>
      <dc:creator>SerhiiKyrylenko</dc:creator>
      <dc:date>2021-12-10T20:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select features within a drawing area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2103#M21</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your question! &amp;nbsp;Take a look at the&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/tree/master/arcgis-ios-sdk-samples/Display%20information/Sketch%20on%20the%20map"&gt;"Sketch on the map"&lt;/A&gt;&amp;nbsp;sample. It demonstrates how you can use the sketch editor to draw point, line, or polygon geometries. &amp;nbsp;You can get the geometry from the sketch to use in your feature layer selection call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps! &amp;nbsp;If you have further questions, let us know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2103#M21</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2020-02-13T16:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select features within a drawing area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2104#M22</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, that is exactly I'm looking for. CPU&amp;nbsp;performance is pretty the same, but there is helpful&amp;nbsp;addition like undo manager. The only concern is how to tweak color/style of the geometries? For example while creating graphics manually, I'm able to tweak &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;AGSSimpleFillSymbol&lt;/SPAN&gt;&amp;nbsp;style, color and outline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 11:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2104#M22</guid>
      <dc:creator>SerhiiKyrylenko</dc:creator>
      <dc:date>2020-02-14T11:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select features within a drawing area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2105#M23</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad that worked for you! &amp;nbsp;If you want to change the symbology used to render the geometry, take a look at the &lt;STRONG&gt;&lt;EM&gt;AGSSketchEditor.style&lt;/EM&gt;&lt;/STRONG&gt; property. &amp;nbsp;It is of type&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;AGSSketchStyle&lt;/EM&gt;&lt;/STRONG&gt;, which lets you change the symbols for pretty much every geometry the sketch editor displays.&amp;nbsp; You&amp;nbsp;can find the doc here: &amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_sketch_style.html" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_sketch_style.html"&gt;ArcGIS Runtime SDK for iOS: AGSSketchStyle Class Reference&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2105#M23</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2020-02-14T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select features within a drawing area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2106#M24</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I was briefly looking at&lt;STRONG style="border: 0px; font-weight: bold;"&gt; AGSSketchEditor.style&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff;"&gt; property at first without success. It turns out I&amp;nbsp;should&amp;nbsp;look for &lt;/SPAN&gt;&lt;STRONG&gt;feedbackFillSymbol&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;feedbackFillSymbol&lt;/STRONG&gt;&amp;nbsp;properties to achieve my needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 17:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/2106#M24</guid>
      <dc:creator>SerhiiKyrylenko</dc:creator>
      <dc:date>2020-02-14T17:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select features within a drawing area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/1151203#M7273</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2665"&gt;@MarkDostal&lt;/a&gt;&amp;nbsp;, This is the exact requirement we have.&amp;nbsp;&lt;SPAN&gt;There is a feature on the map that allows you to select a certain area in the existing map using a poly line or any using other options.&amp;nbsp;We need to show the layer details within the selected area&lt;/SPAN&gt;. Some APIs, such as &lt;STRONG&gt;identifyLayers&lt;/STRONG&gt;, require screen point values to be supplied. Will we be able to access the layer details if we only supply the geometry value? Please assist me in this matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/attempting-to-extract-the-layer-or-graphic-details/m-p/1151179#M7272" target="_blank"&gt;https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/attempting-to-extract-the-layer-or-graphic-details/m-p/1151179#M7272&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 12:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/select-features-within-a-drawing-area/m-p/1151203#M7273</guid>
      <dc:creator>Narenkrishnaar</dc:creator>
      <dc:date>2022-03-07T12:22:49Z</dc:date>
    </item>
  </channel>
</rss>

