<?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: How do you get the map coordinates of a tool's click location in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828062#M3167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this work, or should we be using&lt;/P&gt;&lt;P&gt;HandleMouseDownAsync instated of HandleKeyDownAsync?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;protected&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;override&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;async&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Task&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; HandleMouseDownAsync(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;MapViewMouseButtonEventArgs&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;//Convert the clicked point in client coordinates to the corresponding map coordinates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; mapPoint = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;QueuedTask&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Run(() =&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Active.ClientToMap(e.ClientPoint));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is needed is a code example of the basic process of 'selecting tool from list (e.g., a combobox)', then click on map to get coordinates, then do something with them (e.g., display coord in pop-up). This is not provided as a code snip it in the SDK help documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BASED on the new sample&amp;nbsp;published on&amp;nbsp;GeoNet (7/2016) they are using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;protected&lt;/SPAN&gt; &lt;SPAN&gt;override&lt;/SPAN&gt; &lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;OnToolMouseDown&lt;/SPAN&gt;(&lt;SPAN&gt;MapViewMouseButtonEventArgs&lt;/SPAN&gt; &lt;SPAN&gt;e&lt;/SPAN&gt;) { ..&amp;nbsp;}&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;protected&lt;/SPAN&gt; &lt;SPAN&gt;override&lt;/SPAN&gt; Task &lt;SPAN&gt;HandleMouseDownAsync&lt;/SPAN&gt;(&lt;SPAN&gt;MapViewMouseButtonEventArgs&lt;/SPAN&gt; &lt;SPAN&gt;e&lt;/SPAN&gt;) { ... }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which appears to work.&lt;/P&gt;&lt;TABLE data-tab-size="8" style="width: 1217px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="100" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="101" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="102" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="103" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="104" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="105" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2016 19:26:28 GMT</pubDate>
    <dc:creator>RichardDaniels</dc:creator>
    <dc:date>2016-12-27T19:26:28Z</dc:date>
    <item>
      <title>How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828055#M3160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question was posted recently by Ted Chapin&amp;nbsp; @Ted"How do you get the map coordinates of a tool's click location?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a code snippet to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;protected&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;override&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;void&lt;/SPAN&gt; OnToolMouseDown(&lt;SPAN style="color: #2b91af;"&gt;MapViewMouseButtonEventArgs&lt;/SPAN&gt; e)&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt; (e.ChangedButton == &lt;SPAN style="color: #2b91af;"&gt;MouseButton&lt;/SPAN&gt;.Left)&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Handled = &lt;SPAN style="color: blue;"&gt;true&lt;/SPAN&gt;;&lt;SPAN style="color: green;"&gt;//Let Framework know we want to handle MouseDown asynchronously&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;private&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af;"&gt;MapPoint&lt;/SPAN&gt; _lastClickedMapPoint = &lt;SPAN style="color: blue;"&gt;null&lt;/SPAN&gt;;&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;protected&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;override&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;async&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af;"&gt;Task&lt;/SPAN&gt; HandleKeyDownAsync(&lt;SPAN style="color: #2b91af;"&gt;MapViewKeyEventArgs&lt;/SPAN&gt; k)&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lastClickedMapPoint = &lt;SPAN style="color: blue;"&gt;await&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af;"&gt;QueuedTask&lt;/SPAN&gt;.Run(() =&amp;gt; ActiveMapView.ClientToMap(k.ClientPoint));&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: green;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; color: darkblue;"&gt;TODO - do something with _lastClickedMapPoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;Thanks&lt;/P&gt;&lt;P dir="ltr"&gt;Uma Harano&lt;/P&gt;&lt;P dir="ltr"&gt;ArcGIS Desktop SDK Team&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 21:07:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828055#M3160</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2016-03-24T21:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828056#M3161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/6164"&gt;Ted Chapin&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 21:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828056#M3161</guid>
      <dc:creator>WoodyHynes</dc:creator>
      <dc:date>2016-03-24T21:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828057#M3162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GeoNet fail! If you have a question, don't ask a question - start a discussion!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 12:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828057#M3162</guid>
      <dc:creator>TedChapin</dc:creator>
      <dc:date>2016-03-25T12:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828058#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having a hard time translating this to VB.&amp;nbsp; Need to inherit from MapTool, correct?&amp;nbsp; Can't get the HandleKeyDownAsync function syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 13:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828058#M3163</guid>
      <dc:creator>TedChapin</dc:creator>
      <dc:date>2016-03-25T13:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828059#M3164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ted, try this (from &lt;A href="http://converter.telerik.com/"&gt;http://converter.telerik.com/&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;Protected Overrides Sub OnToolMouseDown(e As MapViewMouseButtonEventArgs)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; If e.ChangedButton = MouseButton.Left Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Handled = True &lt;BR /&gt;&amp;nbsp;&amp;nbsp; End If 'Let Framework know we want to handle MouseDown asynchronously&lt;BR /&gt;End Sub&lt;P&gt;&lt;/P&gt;Private _lastClickedMapPoint As MapPoint = Nothing&lt;P&gt;&lt;/P&gt;Protected Overrides Function HandleKeyDownAsync(k As MapViewKeyEventArgs) As Task&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lastClickedMapPoint = Await QueuedTask.Run(Function() ActiveMapView.ClientToMap(k.ClientPoint))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'TODO - do something with _lastClickedMapPoint&lt;BR /&gt;End Function&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Oh - I think also you are looking for the starting point - In Visual Studio, add a new project of type Module (within ArcGIS folder). In the project, right-click Add New Item, again in the ArcGIS folder pick MapTool or SketchTool..&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;There is more info here: &lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Build-Your-First-Add-in"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Build-Your-First-Add-in&lt;/A&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 16:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828059#M3164</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2016-03-25T16:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828060#M3165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The templates in Visual Studio are available in C# and VB.NET. Even though most of the examples and snippets are C# VB.NET is fully supported in the VS environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 16:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828060#M3165</guid>
      <dc:creator>ThomasEmge</dc:creator>
      <dc:date>2016-03-25T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828061#M3166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's making more sense now.&amp;nbsp; Part of my problem was that when you override a method like HandleKeyDownAsync, Visual Studio autocomplete inserts "Return MyBase.HandleKeyDownAsync(k)". But once you make the function async, the return statement becomes invalid.&amp;nbsp; It's not needed. Autocomplete is not detecting the async keyword very well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's a good sample in the ClientToMap method docs that is exactly what I was looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic11696.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic11696.html"&gt;ArcGIS Pro 1.2 API Reference Guide&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 14:51:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828061#M3166</guid>
      <dc:creator>TedChapin</dc:creator>
      <dc:date>2016-03-28T14:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828062#M3167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this work, or should we be using&lt;/P&gt;&lt;P&gt;HandleMouseDownAsync instated of HandleKeyDownAsync?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;protected&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;override&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;async&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Task&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; HandleMouseDownAsync(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;MapViewMouseButtonEventArgs&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;//Convert the clicked point in client coordinates to the corresponding map coordinates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; mapPoint = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;QueuedTask&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Run(() =&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Active.ClientToMap(e.ClientPoint));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is needed is a code example of the basic process of 'selecting tool from list (e.g., a combobox)', then click on map to get coordinates, then do something with them (e.g., display coord in pop-up). This is not provided as a code snip it in the SDK help documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BASED on the new sample&amp;nbsp;published on&amp;nbsp;GeoNet (7/2016) they are using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;protected&lt;/SPAN&gt; &lt;SPAN&gt;override&lt;/SPAN&gt; &lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;OnToolMouseDown&lt;/SPAN&gt;(&lt;SPAN&gt;MapViewMouseButtonEventArgs&lt;/SPAN&gt; &lt;SPAN&gt;e&lt;/SPAN&gt;) { ..&amp;nbsp;}&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;protected&lt;/SPAN&gt; &lt;SPAN&gt;override&lt;/SPAN&gt; Task &lt;SPAN&gt;HandleMouseDownAsync&lt;/SPAN&gt;(&lt;SPAN&gt;MapViewMouseButtonEventArgs&lt;/SPAN&gt; &lt;SPAN&gt;e&lt;/SPAN&gt;) { ... }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which appears to work.&lt;/P&gt;&lt;TABLE data-tab-size="8" style="width: 1217px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="100" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="101" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="102" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="103" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="104" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD data-line-number="105" style="width: 530.56px;"&gt;&lt;/TD&gt;&lt;TD style="width: 671.44px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 19:26:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828062#M3167</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2016-12-27T19:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get the map coordinates of a tool's click location</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828063#M3168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;This sample might help: &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/BasicMapTool"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/BasicMapTool&lt;/A&gt;&amp;nbsp;it is displaying the clicked on coordinates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And this samples has a combo box for the selection of a specific layer: &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/IdentifyWindow"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/IdentifyWindow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 21:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-get-the-map-coordinates-of-a-tool-s/m-p/828063#M3168</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2016-12-27T21:15:40Z</dc:date>
    </item>
  </channel>
</rss>

