<?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 How to capture the coordinates on a map on mouse click. in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069837#M6775</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have an Add-In screen on which I have a Record button. Now my requirement is:&lt;/P&gt;&lt;P&gt;When I click on the record button it will take me to the map and I should be able to capture the values of X/Y coordinates on the mouse left click on the map.&lt;/P&gt;&lt;P&gt;Can anyone help me to achieve this purpose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro 2.8 SDK, VS2019.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 15:06:29 GMT</pubDate>
    <dc:creator>TapasChakrabarty</dc:creator>
    <dc:date>2021-06-18T15:06:29Z</dc:date>
    <item>
      <title>How to capture the coordinates on a map on mouse click.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069837#M6775</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have an Add-In screen on which I have a Record button. Now my requirement is:&lt;/P&gt;&lt;P&gt;When I click on the record button it will take me to the map and I should be able to capture the values of X/Y coordinates on the mouse left click on the map.&lt;/P&gt;&lt;P&gt;Can anyone help me to achieve this purpose?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro 2.8 SDK, VS2019.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 15:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069837#M6775</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-18T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture the coordinates on a map on mouse click.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069849#M6776</link>
      <description>&lt;P&gt;You can look at this example:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/MapToolWithOverlayControl" target="_blank"&gt;arcgis-pro-sdk-community-samples/Map-Exploration/MapToolWithOverlayControl at master · Esri/arcgis-pro-sdk-community-samples (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;this shows the coordinates for a mouse click in an overlay control.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 15:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069849#M6776</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-18T15:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture the coordinates on a map on mouse click.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069851#M6777</link>
      <description>&lt;P&gt;Agreed&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;, I have gone through the example but I have doubts about how to call the mouse click from the Add-In page button click.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 15:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069851#M6777</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-18T15:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture the coordinates on a map on mouse click.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069871#M6778</link>
      <description>&lt;P&gt;I am not sure what you mean, but the way to implement an interactive 'mouse click' on a map view is by implementing an 'ArcGIS Pro Map Tool' in your add-in by using the 'ArcGIS Pro Map Tool' item template:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1624031758101.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16311i92D8B8F1275980B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1624031758101.png" alt="Wolf_0-1624031758101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have implemented this and copied the relevant mouse click code from the community sample i mentioned above, you can use the map tool's button on the ArcGIS Pro ribbon tab.&amp;nbsp; If you want to use that same 'mouse click' tool from anywhere in your code or from a button on a dockpane you can use the Pro Guide for 're-using Pro Commands' to implement this functionality:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Reusing-Pro-Commands" target="_blank"&gt;ProGuide Reusing Pro Commands · Esri/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:02:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1069871#M6778</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-18T16:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture the coordinates on a map on mouse click.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1070403#M6783</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;MapTool create a seperate Add-In tool. But I don't mean to add another button to my Add-In. Let me explain my requirement point-wise.&lt;/P&gt;&lt;P&gt;1. I have Add-In in which there is an add-in button that opens a page.&lt;/P&gt;&lt;P&gt;2. On that page I have a Record button (c# wpf button).&lt;/P&gt;&lt;P&gt;3. When I click on that Record button, my Add-in page is minimized, and I can click on the map.&lt;/P&gt;&lt;P&gt;Now I want to capture the coordinates on the map where ever I left click.&lt;/P&gt;&lt;P&gt;The example u gave adds an overlay page on the map but the source to open the page is from the add-in where another tool button gets added.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 13:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-capture-the-coordinates-on-a-map-on-mouse/m-p/1070403#M6783</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-21T13:05:52Z</dc:date>
    </item>
  </channel>
</rss>

