<?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: isVisbleOrInvisilbe is not a function - WebApp Builder in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/isvisbleorinvisilbe-is-not-a-function-webapp/m-p/1070450#M73559</link>
    <description>&lt;P&gt;Web AppBuilder for Portal 10.4.1 is pretty old, at version 1.4, so there might be some functionality missing for newer layers. What type of layer isn't showing?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 14:27:10 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2021-06-21T14:27:10Z</dc:date>
    <item>
      <title>isVisbleOrInvisilbe is not a function - WebApp Builder</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/isvisbleorinvisilbe-is-not-a-function-webapp/m-p/1070180#M73548</link>
      <description>&lt;P&gt;I am using Portal for ArcGIS (version 10.4.1), and a web application is deployed in the portal with widgets. In the List layer widget, one of the services is not showing up and when the checkbox is marked following error appears in the console.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Uncaught TypeError: a.isVisbleOrInvisilbe is not a function
    at main.js:972
    at Object.traversal (main.js:840)
    at Object.traversal (main.js:841)
    at Object._setTopLayerVisible (main.js:972)
    at Object.setTopLayerVisible (main.js:841)
    at Object._onCkSelectNodeClick (Widget.js:12)
    at HTMLDivElement.&amp;lt;anonymous&amp;gt; (init.js:166)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I visit the main.js, the&amp;nbsp;isVisbleOrInvisilbe is only available in 3 places as follows.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;_setTopLayerVisible: function(a) {
    var c;
    if (this.originOperLayer.mapService &amp;amp;&amp;amp; (c = this.originOperLayer.mapService, 0 &amp;lt; this.originOperLayer.subLayers.length)) {
        a ? c.layerInfo.subLayerVisible[c.subId]++ : c.layerInfo.subLayerVisible[c.subId]--;
        this._visible =
            a;
        var b = {};
        this.traversal(function(a) {
            0 === a.getSubLayers().length &amp;amp;&amp;amp; (b[a.originOperLayer.mapService.subId] = a.isVisbleOrInvisilbe())
        });
        c.layerInfo.setSubLayerVisible(b)
    }
},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and further down as follows&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;visbleOrInvisilbe: function() {
    var d = this.originOperLayer.mapService,
        h = {};
    h[d.subId] = this.isVisbleOrInvisilbe();
    d.layerInfo.setSubLayerVisible(h)
},
isVisbleOrInvisilbe: function() {
    for (var d = this.originOperLayer.mapService, h = -1, c = d.subId, p = 0;;) {
        h++;
        p += d.layerInfo.subLayerVisible[c];
        c = d.layerInfo._getJsapiLayerInfoById(c);
        if (-1 === c.parentLayerId) return p &amp;gt; h ? !0 : !1;
        c = c.parentLayerId
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can clearly see that the function is present, but still, it says it is not a function. What might be the problem?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 09:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/isvisbleorinvisilbe-is-not-a-function-webapp/m-p/1070180#M73548</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2021-06-20T09:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: isVisbleOrInvisilbe is not a function - WebApp Builder</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/isvisbleorinvisilbe-is-not-a-function-webapp/m-p/1070450#M73559</link>
      <description>&lt;P&gt;Web AppBuilder for Portal 10.4.1 is pretty old, at version 1.4, so there might be some functionality missing for newer layers. What type of layer isn't showing?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 14:27:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/isvisbleorinvisilbe-is-not-a-function-webapp/m-p/1070450#M73559</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-06-21T14:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: isVisbleOrInvisilbe is not a function - WebApp Builder</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/isvisbleorinvisilbe-is-not-a-function-webapp/m-p/1070858#M73574</link>
      <description>&lt;P&gt;There is a base map service with two different services. When the check box is toggled, one of those services shows up normally, but when the second service is fired up, it gives the error discussed previously.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="layer error.png" style="width: 698px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16565iA852EACC9E2A53FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="layer error.png" alt="layer error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Both service links are working normally when accessing the service link directly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 06:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/isvisbleorinvisilbe-is-not-a-function-webapp/m-p/1070858#M73574</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2021-06-22T06:45:27Z</dc:date>
    </item>
  </channel>
</rss>

