<?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 Check to see if Layer is visible at current map extent in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-to-see-if-layer-is-visible-at-current-map/m-p/774250#M1953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to verify if a layer in the map is visible at the current map extent?&amp;nbsp;&amp;nbsp; FeatureLayer has a .maxScale property which can be used for this.&amp;nbsp; I don't see anything similar for the LayerInfo class.&amp;nbsp;&amp;nbsp; Thanks for any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 May 2016 22:20:29 GMT</pubDate>
    <dc:creator>AdamCrateau1</dc:creator>
    <dc:date>2016-05-20T22:20:29Z</dc:date>
    <item>
      <title>Check to see if Layer is visible at current map extent</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-to-see-if-layer-is-visible-at-current-map/m-p/774250#M1953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to verify if a layer in the map is visible at the current map extent?&amp;nbsp;&amp;nbsp; FeatureLayer has a .maxScale property which can be used for this.&amp;nbsp; I don't see anything similar for the LayerInfo class.&amp;nbsp;&amp;nbsp; Thanks for any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 22:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-to-see-if-layer-is-visible-at-current-map/m-p/774250#M1953</guid>
      <dc:creator>AdamCrateau1</dc:creator>
      <dc:date>2016-05-20T22:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Check to see if Layer is visible at current map extent</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-to-see-if-layer-is-visible-at-current-map/m-p/774251#M1954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerInfo has a maxScale and minScale. The WAB LayerInfos object you can get by using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerInfos.getInstance(this.map, this.map.itemInfo).then(lang.hitch(this, function(operLayerInfos) { &lt;/P&gt;&lt;P&gt;code as referenced in the &lt;A href="https://developers.arcgis.com/web-appbuilder/api-reference/layerinfos.htm" title="https://developers.arcgis.com/web-appbuilder/api-reference/layerinfos.htm"&gt;LayerInfos class—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;will allow you to get&lt;/P&gt;&lt;P&gt;array.forEach(operLayerInfos.getLayerInfoArray(), function(layerInfo) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var isVisible = layerInfo.layerObject.visibleAtMapScale;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 22:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-to-see-if-layer-is-visible-at-current-map/m-p/774251#M1954</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-20T22:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Check to see if Layer is visible at current map extent</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-to-see-if-layer-is-visible-at-current-map/m-p/774252#M1955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The layerObject property appears to expose all the underlying FeatureLayer properties -- exactly what I needed, Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 23:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-to-see-if-layer-is-visible-at-current-map/m-p/774252#M1955</guid>
      <dc:creator>AdamCrateau1</dc:creator>
      <dc:date>2016-05-20T23:45:35Z</dc:date>
    </item>
  </channel>
</rss>

