<?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 An issue about showing only outdoor street view panorama in my custom Google Streetview widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/an-issue-about-showing-only-outdoor-street-view/m-p/1372371#M83405</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P data-unlink="true"&gt;We developed a custom Google Streetview widget for one of our web appBuilder applications and it is working well. The one issue is that the street view of some places are showing indoor panorama. We would like it to show &lt;STRONG&gt;outdoor&lt;/STRONG&gt; / &lt;STRONG&gt;Google official&lt;/STRONG&gt; panorama only, so I added a parameter "&lt;STRONG&gt;sources: ['outdoor', 'google']&lt;/STRONG&gt;" into "service.getPanorama" below, but nothing happened. There were no errors but indoor panorama still showed. I also tried to add the "sources" parameter into a demo &lt;STRONG&gt;https://jsfiddle.net/geocodezip/bme4mzLv/&lt;/STRONG&gt;&amp;nbsp; and it worked. I tried many different ways in my code below but none of them worked and indoor&amp;nbsp; panorama still showed. I am wondering if ESRI dojo framwork is limitating its working? Is there anyone that had the same issue?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function checkForSVpano(lat, lon, showAC, showPC, showZC, showID, pcPos, acPos, clkToGo, disDblClkZoom, zcPos,
      zcStyl, showLC, heading) {
      try {
        streetViewLat = lat;
        streetViewLon = lon;
        showAddressControl = getBoolean(showAC);
        showPanControl = getBoolean(showPC);
        showZoomControl = getBoolean(showZC);
        showImgDate = getBoolean(showID);
        pcPosition = getCtrlPosition(pcPos);
        acPosition = getCtrlPosition(acPos);
        zcPosition = getCtrlPosition(zcPos);
        zcStyle = getCtrlStyle(zcStyl);
        disDoubleClickZoom = getBoolean(disDblClkZoom);
        click2Go = getBoolean(clkToGo);  
        showLinkControl = getBoolean(showLC);
        svmHeading = heading;
        var myLoc = new google.maps.LatLng(lat, lon);
        var service = new google.maps.StreetViewService();
        service.getPanorama({location: myLoc, radius: 50, sources: ['outdoor', 'google']}, showPanoData);
      } catch (e) {
        alert("checkForSVpano: " + e.message);
      }
    }&lt;/LI-CODE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saili&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 17:28:20 GMT</pubDate>
    <dc:creator>SailiTang_HW</dc:creator>
    <dc:date>2024-01-19T17:28:20Z</dc:date>
    <item>
      <title>An issue about showing only outdoor street view panorama in my custom Google Streetview widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/an-issue-about-showing-only-outdoor-street-view/m-p/1372371#M83405</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P data-unlink="true"&gt;We developed a custom Google Streetview widget for one of our web appBuilder applications and it is working well. The one issue is that the street view of some places are showing indoor panorama. We would like it to show &lt;STRONG&gt;outdoor&lt;/STRONG&gt; / &lt;STRONG&gt;Google official&lt;/STRONG&gt; panorama only, so I added a parameter "&lt;STRONG&gt;sources: ['outdoor', 'google']&lt;/STRONG&gt;" into "service.getPanorama" below, but nothing happened. There were no errors but indoor panorama still showed. I also tried to add the "sources" parameter into a demo &lt;STRONG&gt;https://jsfiddle.net/geocodezip/bme4mzLv/&lt;/STRONG&gt;&amp;nbsp; and it worked. I tried many different ways in my code below but none of them worked and indoor&amp;nbsp; panorama still showed. I am wondering if ESRI dojo framwork is limitating its working? Is there anyone that had the same issue?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function checkForSVpano(lat, lon, showAC, showPC, showZC, showID, pcPos, acPos, clkToGo, disDblClkZoom, zcPos,
      zcStyl, showLC, heading) {
      try {
        streetViewLat = lat;
        streetViewLon = lon;
        showAddressControl = getBoolean(showAC);
        showPanControl = getBoolean(showPC);
        showZoomControl = getBoolean(showZC);
        showImgDate = getBoolean(showID);
        pcPosition = getCtrlPosition(pcPos);
        acPosition = getCtrlPosition(acPos);
        zcPosition = getCtrlPosition(zcPos);
        zcStyle = getCtrlStyle(zcStyl);
        disDoubleClickZoom = getBoolean(disDblClkZoom);
        click2Go = getBoolean(clkToGo);  
        showLinkControl = getBoolean(showLC);
        svmHeading = heading;
        var myLoc = new google.maps.LatLng(lat, lon);
        var service = new google.maps.StreetViewService();
        service.getPanorama({location: myLoc, radius: 50, sources: ['outdoor', 'google']}, showPanoData);
      } catch (e) {
        alert("checkForSVpano: " + e.message);
      }
    }&lt;/LI-CODE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saili&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 17:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/an-issue-about-showing-only-outdoor-street-view/m-p/1372371#M83405</guid>
      <dc:creator>SailiTang_HW</dc:creator>
      <dc:date>2024-01-19T17:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: An issue about showing only outdoor street view panorama in my custom Google Streetview widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/an-issue-about-showing-only-outdoor-street-view/m-p/1372535#M83411</link>
      <description>&lt;P&gt;Not strictly an answer to your question, but you should be aware that using StreetView on an ESRI map is a violation of Google's Terms of Service.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/esri-young-professionals-network-blog/from-missing-beats-to-mapping-streets-my-gis/ba-p/1339907" target="_blank"&gt;https://community.esri.com/t5/esri-young-professionals-network-blog/from-missing-beats-to-mapping-streets-my-gis/ba-p/1339907&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 21:00:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/an-issue-about-showing-only-outdoor-street-view/m-p/1372535#M83411</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-01-19T21:00:00Z</dc:date>
    </item>
  </channel>
</rss>

