<?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 Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/an-issue-about-showing-only-outdoor-street-view/m-p/1372328#M14958</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 16:19:31 GMT</pubDate>
    <dc:creator>SailiTang_HW</dc:creator>
    <dc:date>2024-01-19T16:19:31Z</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/web-appbuilder-custom-widgets-questions/an-issue-about-showing-only-outdoor-street-view/m-p/1372328#M14958</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 16:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/an-issue-about-showing-only-outdoor-street-view/m-p/1372328#M14958</guid>
      <dc:creator>SailiTang_HW</dc:creator>
      <dc:date>2024-01-19T16:19:31Z</dc:date>
    </item>
  </channel>
</rss>

