<?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 I add Google Street View to my ArcGIS API for JavaScript apps? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328535#M30344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try this out. Thanks. Will let you know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 17:25:01 GMT</pubDate>
    <dc:creator>ChrisSergent</dc:creator>
    <dc:date>2014-12-17T17:25:01Z</dc:date>
    <item>
      <title>How do I add Google Street View to my ArcGIS API for JavaScript apps?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328533#M30342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Flex Builder app has a widget to add Google Street View to Esri maps. How would I do that in the JavaScript API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 17:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328533#M30342</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2014-12-17T17:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add Google Street View to my ArcGIS API for JavaScript apps?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328534#M30343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added it to my application as a context menu item. I implemented it based on &lt;A href="https://developers.arcgis.com/javascript/jssamples/graphics_contextmenu.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ESRI's context menu sample&lt;/A&gt; and then added my own code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctxMenuForMap.addChild(new MenuItem({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "lblStreetview",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "Open Location in Google Streetview",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onClick: function() {
&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;&amp;nbsp; openStreetview(currentMouseLocation);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function openStreetview(theLocation) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var theLatLongGeom = webMercatorUtils.webMercatorToGeographic(theLocation);
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var theUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://maps.google.com/maps?q=Your+Sign+Location+in+Street+View@" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.google.com/maps?q=Your+Sign+Location+in+Street+View@&lt;/A&gt;&lt;SPAN&gt;" + theLatLongGeom.x + "," + theLatLongGeom.y + "&amp;amp;cbll=" + theLatLongGeom.y + "," + theLatLongGeom.x + "&amp;amp;layer=c";&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open(theUrl, 'Streetview', "height=500,width=800,resizable=yes,scrollbars=yes");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;Note that you'll need to add a reference for the webMercatorUtils.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328534#M30343</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-11T15:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add Google Street View to my ArcGIS API for JavaScript apps?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328535#M30344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try this out. Thanks. Will let you know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 17:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328535#M30344</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2014-12-17T17:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add Google Street View to my ArcGIS API for JavaScript apps?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328536#M30345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've also added a couple other options based on the lat/long location clicked. These may or may not be applicable to your project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bing also has an oblique aerial view (based on Pictommetry products) which you can display:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctxMenuForMap.addChild(new MenuItem({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "lblBirdsEye",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "Open Location in Bing\'s Birds Eye View",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onClick: function() {
&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;&amp;nbsp; openBirdsEye(currentMouseLocation);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function openBirdsEye(theLocation) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var theLatLongGeom = webMercatorUtils.webMercatorToGeographic(theLocation);
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var theUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://bing.com/maps/default.aspx?cp=" rel="nofollow noopener noreferrer" target="_blank"&gt;http://bing.com/maps/default.aspx?cp=&lt;/A&gt;&lt;SPAN&gt;" + theLatLongGeom.y + "~" + theLatLongGeom.x + "&amp;amp;style=b&amp;amp;dir=0#ToggleTaskArea";&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open(theUrl, 'BirdsEye', "height=650,width=800,resizable=yes,scrollbars=yes");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/PRE&gt;&lt;P&gt;Finally, pull up NWS weather forecasts for a given location:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctxMenuForMap.addChild(new MenuItem({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "lblShowWeather",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "NWS Forecast For This Location",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onClick: function() {
&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;&amp;nbsp; openWeatherForecast(currentMouseLocation);
&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;&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; function openWeatherForecast(theLocation) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var theLatLongGeom = webMercatorUtils.webMercatorToGeographic(theLocation);
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var theUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forecast.weather.gov/MapClick.php?lon=" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forecast.weather.gov/MapClick.php?lon=&lt;/A&gt;&lt;SPAN&gt;" + theLatLongGeom.x + "&amp;amp;lat=" + theLatLongGeom.y;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open(theUrl, 'Forecast', "height=600,width=1050,resizable=yes,scrollbars=yes");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328536#M30345</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-11T15:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add Google Street View to my ArcGIS API for JavaScript apps?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328537#M30346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try that as well and let you know. I ran into a glitch so I have to come back to this as soon as I fix another issue. Thanks for the feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328537#M30346</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2014-12-18T15:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add Google Street View to my ArcGIS API for JavaScript apps?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328538#M30347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to review the &lt;A href="https://developers.google.com/maps/terms" title="https://developers.google.com/maps/terms"&gt;Google Maps/Google Earth APIs Terms of Service&lt;/A&gt;‌ as Google doesn't generally allow their products to be displayed alongside non-Google maps, including Street View (the exception being if the interface does not provide any map). Sections 9.1.1 and 10.1.1 are particularly relevant, but as always, you should review the entire document to ensure you are not breaching the TOS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 17:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328538#M30347</guid>
      <dc:creator>DavidBlanchard</dc:creator>
      <dc:date>2014-12-18T17:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add Google Street View to my ArcGIS API for JavaScript apps?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328539#M30348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read it. It will be in a separate window like the FlexViewer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 20:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328539#M30348</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2014-12-18T20:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add Google Street View to my ArcGIS API for JavaScript apps?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328540#M30349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have it working with web mercator. I just need to make it work with our spatial reference. I will leave this open as I try out the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 21:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-add-google-street-view-to-my-arcgis-api/m-p/328540#M30349</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2014-12-24T21:40:01Z</dc:date>
    </item>
  </channel>
</rss>

