<?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 AppStudio 5.2 - How to create a selection rectangle in MapView? in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/appstudio-5-2-how-to-create-a-selection-rectangle/m-p/1133613#M4151</link>
    <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I'm using AppStudio 5.2 and the 5.2 Map Viewer template connected to a secured ArcGIS Online Web Map. I have written some code that listens for mouse activity and under certain conditions (my own) a map selection box is drawn while the mouse button is pressed.&lt;BR /&gt;The MapView onMousePressed, onMousePositionChanged, and onMouseReleased events are used and all seems fine while working on a Windows laptop. When running the app on an iPad only the onMousePressed fires. I was hoping that dragging a finger would fire onMousePositionChanged and lifting the finger would fire onMouseReleased. Optimistic, I know.&lt;/P&gt;&lt;P&gt;In short, what is the best way to interactively create a rectangular selection box in iOS?&lt;/P&gt;&lt;P&gt;I'm developing in Windows and targeting iOS.&lt;BR /&gt;Anyone have any ideas?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 21:05:22 GMT</pubDate>
    <dc:creator>BurnsideAdmin</dc:creator>
    <dc:date>2022-01-13T21:05:22Z</dc:date>
    <item>
      <title>AppStudio 5.2 - How to create a selection rectangle in MapView?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/appstudio-5-2-how-to-create-a-selection-rectangle/m-p/1133613#M4151</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I'm using AppStudio 5.2 and the 5.2 Map Viewer template connected to a secured ArcGIS Online Web Map. I have written some code that listens for mouse activity and under certain conditions (my own) a map selection box is drawn while the mouse button is pressed.&lt;BR /&gt;The MapView onMousePressed, onMousePositionChanged, and onMouseReleased events are used and all seems fine while working on a Windows laptop. When running the app on an iPad only the onMousePressed fires. I was hoping that dragging a finger would fire onMousePositionChanged and lifting the finger would fire onMouseReleased. Optimistic, I know.&lt;/P&gt;&lt;P&gt;In short, what is the best way to interactively create a rectangular selection box in iOS?&lt;/P&gt;&lt;P&gt;I'm developing in Windows and targeting iOS.&lt;BR /&gt;Anyone have any ideas?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 21:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/appstudio-5-2-how-to-create-a-selection-rectangle/m-p/1133613#M4151</guid>
      <dc:creator>BurnsideAdmin</dc:creator>
      <dc:date>2022-01-13T21:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: AppStudio 5.2 - How to create a selection rectangle in MapView?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/appstudio-5-2-how-to-create-a-selection-rectangle/m-p/1135153#M4155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/116400"&gt;@BurnsideAdmin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You should be able to use the MouseArea QML component and the onMouseXChanged, onMouseYChanged, onPressed, and onReleased signals should trigger using touch screens. I was able to test using my iPhone and console logging mouseX and mouseY to see the coordinates update.&lt;/P&gt;&lt;P data-unlink="true"&gt;Another option we use in some of our template apps is to drop a point on the map using a mouse clicked event, then click to add another point to draw a line. You can find a good example of this here that demonstrates how to draw points, lines, and polygons.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 21:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/appstudio-5-2-how-to-create-a-selection-rectangle/m-p/1135153#M4155</guid>
      <dc:creator>TrevorFrame</dc:creator>
      <dc:date>2022-01-19T21:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: AppStudio 5.2 - How to create a selection rectangle in MapView?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/appstudio-5-2-how-to-create-a-selection-rectangle/m-p/1135487#M4156</link>
      <description>&lt;P&gt;Thanks, Trevor.&lt;/P&gt;&lt;P&gt;I was able to use your MouseArea idea. As an API enhancement, I suggest modifying the QML MapView (GeoView) mouse events to allow for screen gestures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 16:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/appstudio-5-2-how-to-create-a-selection-rectangle/m-p/1135487#M4156</guid>
      <dc:creator>BurnsideAdmin</dc:creator>
      <dc:date>2022-01-20T16:31:47Z</dc:date>
    </item>
  </channel>
</rss>

