<?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: Pro AddIn: Click to Open Web Page in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854429#M4427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read that wiki, not sure how to do this: '&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Access your add-in project's Properties page through its context menu.'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2019 22:46:43 GMT</pubDate>
    <dc:creator>DylanHarwell</dc:creator>
    <dc:date>2019-05-02T22:46:43Z</dc:date>
    <item>
      <title>Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854424#M4422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still bitter with ESRI for not bringing Python Add-Ins over to Pro.. I have never coded in C#/.NET and know very little about ArcObjects. My Python skills I consider to be strong, not just scripting but app development, so I think I can pick up on the .NET SDK, though I am reluctant to get into this rabbit hole. I have VS and the SDK up and running, went through some tutorials, just looking for some guidance on a specific solution here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A while back I created a little ArcMap Add-In, just a single toolbar button that will open Google Street View in your default browser when the user clicks a location on the map. I'd like to deploy a button like this in Pro, but after searching and searching for 'C# open a web page on click event' all I was coming up with was ASP.NET stuff and I have zero knowledge on any of this stuff lol! I was basically looking for a one liner to add into the onClick event of my button.cs code to just open Google.com to start with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the Python Add-In code that accomplishes this, and I am not looking for anyone to code this entirely for me, but maybe some suggestions, guidance, resources, etc. All this does is grab the coordinates from where the user clicks and feeds that into a url to open street view.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; pythonaddins
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; webbrowser
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; threading

&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;OpenStreetView&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;object&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="string token"&gt;"""Implementation for StreetView_addin.tool (Tool)"""&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;__init__&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
        self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cursor &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;3&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# cross hair cursor&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;onMouseDownMap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; button&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; shift&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        mxd &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDataFrames&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
        sr_df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference
        pt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        pt_geom &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PointGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_df&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        new_pt_geom &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pt_geom&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;projectAs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"WGS 1984"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        new_pt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; new_pt_geom&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;firstPoint
        new_X &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; new_pt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X
        new_Y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; new_pt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y
&lt;SPAN class="comment token"&gt;##        message = "Projected: " + str(x) + ", " + str(y) + " Geographic: " + str(new_X) + ", " + str(new_Y)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;##        pythonaddins.MessageBox(message, "Coordinates")&lt;/SPAN&gt;
        maps_url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"https://maps.google.com/maps?q=&amp;amp;layer=c&amp;amp;cbll="&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_Y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;","&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_X&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        threading&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Thread&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;target&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;webbrowser&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;open&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; args&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;maps_url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;start&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854424#M4422</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2021-12-12T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854425#M4423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dylan&lt;/P&gt;&lt;P&gt;There are a few ways to accomplish this with .NET. One suggestion is posted here on &lt;A href="https://stackoverflow.com/questions/4580263/how-to-open-in-default-browser-in-c-sharp" rel="nofollow noopener noreferrer" target="_blank"&gt;stackoverflow&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code snippet to open a url in a Pro button OnClick method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt; &lt;SPAN class="keyword token"&gt;internal&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;OpenURL&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Button
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;protected&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;override&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;OnClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Diagnostics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Process&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Start&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"http://google.com"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;You can use &lt;A href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/interpolated" rel="nofollow noopener noreferrer" target="_blank"&gt;string interpolation&lt;/A&gt; to pass in the points to the string.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854425#M4423</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-12-12T10:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854426#M4424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uma, thanks for the reply! So when I try just that line and click the button in Pro it grays out and nothing happens. I tried a variety of the suggestions on the stackoverflow site and it's the same behavior, button grays out on first click and no browser window opens. The final suggestion seemed promising but did not work. What is commented out is what I tried just before that.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;namespace&lt;/SPAN&gt; StreetViewButton
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;internal&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;OpenGoogle&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Button
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;protected&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;override&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;OnClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; processes &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Process&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetProcessesByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Chrome"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; processes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FirstOrDefault&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MainModule&lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FileName&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;string&lt;/SPAN&gt; url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"http://google.com"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;//System.Diagnostics.Process myProcess = new System.Diagnostics.Process();&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;//myProcess.StartInfo.UseShellExecute = true;&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;//myProcess.StartInfo.FileName = url;&lt;/SPAN&gt;
            Process&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Start&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854426#M4424</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2021-12-12T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854427#M4425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dylan,&lt;/P&gt;&lt;P&gt;One of the main reasons this happens is if the namespace of the button class (StreetViewButton from your code snippet above) doesn't match the namespace defined in your config.daml or in your add-ins settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check out this topic to see if this could be an issue:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Diagnosing-ArcGIS-Pro-Add-ins#namespace-mismatch-causes-controls-to-not-work-or-disappear" title="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Diagnosing-ArcGIS-Pro-Add-ins#namespace-mismatch-causes-controls-to-not-work-or-disappear"&gt;ProGuide Diagnosing ArcGIS Pro Add ins · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 22:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854427#M4425</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2019-05-02T22:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854428#M4426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The config was auto generated, and I have not touched it since adding the button to the project. Looks like it added _Module, _Group1, _Button1 to the namespace name. Do these all need to be identical?&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/445607_Capture.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 22:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854428#M4426</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-05-02T22:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854429#M4427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read that wiki, not sure how to do this: '&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Access your add-in project's Properties page through its context menu.'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 22:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854429#M4427</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-05-02T22:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854430#M4428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dylan&lt;/P&gt;&lt;P&gt;In this screenshot, I see one issue: In the button element defined in the Config.daml,&amp;nbsp; notice that the className attribute is set to Button1. But in the code snippet you shared above your button class is actually&amp;nbsp;OpenGoogle. So try changing that in the config.daml - to match your button class.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/445610_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 22:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854430#M4428</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2019-05-02T22:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854431#M4429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was trick! Thank you for your help, I'm such a noob at this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 22:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854431#M4429</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-05-02T22:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854432#M4430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now the next step is to have it open a link not when the user clicks the button, but when the user clicks the button and THEN clicks in the map...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 22:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854432#M4430</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-05-02T22:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854433#M4431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Glad that worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 22:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854433#M4431</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2019-05-02T22:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854434#M4432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dylan,&lt;/P&gt;&lt;P&gt;Try creating a MapTool instead of a button. I had the exact same problem and found a solution here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/190516-is-there-a-streetview-add-in-for-arcgis-pro"&gt;https://community.esri.com/thread/190516-is-there-a-streetview-add-in-for-arcgis-pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to keep in mind is that you need a way to deactivate the tool after you click on the map. Adding this line at the end of the QueuedTask works for me:&lt;/P&gt;&lt;P&gt;FrameworkApplication.SetCurrentToolAsync("esri_mapping_exploreTool");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this, I was also able to recreate a python addin that opens Google Maps at the MapView center and zoom level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2019 17:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854434#M4432</guid>
      <dc:creator>MattWashburn1</dc:creator>
      <dc:date>2019-05-03T17:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854435#M4433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt, got it working in about 10 min! Good trick to change the cursor back after the click event. I noticed the url they used tells google to open the map facing either Eeast or West, I forget which, but changing the 90 to a 0 makes it open facing North.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2019 19:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854435#M4433</guid>
      <dc:creator>DylanHarwell</dc:creator>
      <dc:date>2019-05-03T19:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854436#M4434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it's working! I noticed that URL direction too. I also changed the&amp;nbsp;base URL&amp;nbsp;to this format:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"https://www.google.com/maps/@?api=1&amp;amp;map_action=pano&amp;amp;viewpoint="&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both work, but I believe this one is the more current standard:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.google.com/maps/documentation/urls/guide#street-view-action"&gt;https://developers.google.com/maps/documentation/urls/guide#street-view-action&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2019 19:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/854436#M4434</guid>
      <dc:creator>MattWashburn1</dc:creator>
      <dc:date>2019-05-03T19:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pro AddIn: Click to Open Web Page</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/1268763#M9547</link>
      <description>&lt;P&gt;I just moved to ArcGIS Pro 3.1 and had to migrate my Visual Studio 2022 Google Streetview Add In from 2.x to 3.x. I used the "Pro Migration Solution" extension tool in VS, but even afterwards, although the project Built okay, the Add In failed with a system error. It turns out that the .NET Windows Desktop Runtime 6.0 (the new .NET framework), requires a change in the way that the Process.Start (url) is called. I've copied my script below, which includes the syntax used for the Process.Start call:&lt;/P&gt;&lt;P&gt;using System.Threading.Tasks;&lt;BR /&gt;using System.Diagnostics;&lt;BR /&gt;using ArcGIS.Core.Geometry;&lt;BR /&gt;using ArcGIS.Desktop.Framework.Threading.Tasks;&lt;BR /&gt;using ArcGIS.Desktop.Mapping;&lt;/P&gt;&lt;P&gt;namespace StreetviewPro&lt;BR /&gt;{&lt;BR /&gt;internal class StreetviewPro : MapTool&lt;BR /&gt;{&lt;BR /&gt;protected override void OnToolMouseDown(MapViewMouseButtonEventArgs e)&lt;BR /&gt;{&lt;BR /&gt;if (e.ChangedButton == System.Windows.Input.MouseButton.Left)&lt;BR /&gt;e.Handled = true; //Handle the event args to get the call to the corresponding async method&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;protected override Task HandleMouseDownAsync(MapViewMouseButtonEventArgs e)&lt;BR /&gt;{&lt;BR /&gt;return QueuedTask.Run(() =&amp;gt;&lt;BR /&gt;{// Convert the clicked point in client coordinates to the corresponding map coordinates.&lt;BR /&gt;MapPoint mapPoint = MapView.Active.ClientToMap(e.ClientPoint);// convert to lon/lat&lt;BR /&gt;MapPoint coords = (MapPoint)GeometryEngine.Instance.Project(mapPoint, SpatialReferences.WGS84);&lt;BR /&gt;// open a web browser&lt;BR /&gt;string url = string.Format("&lt;A href="http://maps.google.com/?cbll={0},{1}&amp;amp;cbp=12,90,0,0,5&amp;amp;layer=c" target="_blank"&gt;http://maps.google.com/?cbll={0},{1}&amp;amp;cbp=12,90,0,0,5&amp;amp;layer=c&lt;/A&gt;", coords.Y, coords.X);&lt;BR /&gt;&lt;STRONG&gt;Process.Start(new ProcessStartInfo (url) { UseShellExecute = true });&lt;/STRONG&gt;&lt;BR /&gt;});&lt;BR /&gt;}&lt;BR /&gt;public StreetviewPro()&lt;BR /&gt;{&lt;BR /&gt;//IsSketchTool = true;&lt;BR /&gt;//SketchType = SketchGeometryType.Rectangle;&lt;BR /&gt;//SketchOutputMode = SketchOutputMode.Map;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;protected override Task OnToolActivateAsync(bool active)&lt;BR /&gt;{&lt;BR /&gt;return base.OnToolActivateAsync(active);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;protected override Task&amp;lt;bool&amp;gt; OnSketchCompleteAsync(Geometry geometry)&lt;BR /&gt;{&lt;BR /&gt;return base.OnSketchCompleteAsync(geometry);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That script made my StreetView Add In work in ArcGIS Pro 3.1&lt;/P&gt;&lt;P&gt;Hopefully, someone else finds this info useful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 21:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-addin-click-to-open-web-page/m-p/1268763#M9547</guid>
      <dc:creator>MarietteShin</dc:creator>
      <dc:date>2023-03-16T21:03:22Z</dc:date>
    </item>
  </channel>
</rss>

