<?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: Detemine if FeatureLayer is visible in current extent. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435756#M40138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for getting back to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I want to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have scale dependent visibility set for our feature layer ( say Building).So, this layers is added multiple times to the map.It starts to show up from scale 9028,4514,2257 and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this layer is in its visibility scale range but has been turned off from TOC and if user tries to query it, then in this case, I want to restrict user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So,when user clicks Fire Query button, I want to check if the Building layer is on or off.If it is off, query won't get fired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope I am clear enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sanjay.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2011 03:17:42 GMT</pubDate>
    <dc:creator>SanajyJadhav</dc:creator>
    <dc:date>2011-09-23T03:17:42Z</dc:date>
    <item>
      <title>Detemine if FeatureLayer is visible in current extent.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435754#M40136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have subscribed to the map extent changed event.I want to check if my feature layer is visible or not in this extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I do that? I looked into the FeatureLayer members and could not find any thing that would indicate its visibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sanjay.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 18:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435754#M40136</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2011-09-22T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Detemine if FeatureLayer is visible in current extent.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435755#M40137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are you trying to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to manually figure out if a feature layer's extent overlaps with the current map extent, use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/featurelayer.htm#fullExtent"&gt;feature layer's fullExtent property&lt;/A&gt;&lt;SPAN&gt;. You can test if the feature layer's extent &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/extent.htm#intersects"&gt;intersects&lt;/A&gt;&lt;SPAN&gt; with the map's extent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 19:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435755#M40137</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-09-22T19:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Detemine if FeatureLayer is visible in current extent.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435756#M40138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for getting back to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I want to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have scale dependent visibility set for our feature layer ( say Building).So, this layers is added multiple times to the map.It starts to show up from scale 9028,4514,2257 and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this layer is in its visibility scale range but has been turned off from TOC and if user tries to query it, then in this case, I want to restrict user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So,when user clicks Fire Query button, I want to check if the Building layer is on or off.If it is off, query won't get fired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope I am clear enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sanjay.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 03:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435756#M40138</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2011-09-23T03:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detemine if FeatureLayer is visible in current extent.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435757#M40139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand. What I posted previously still applies. In addition to testing if extents intersect, I'd also check each layer's visible property before doing a query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 16:37:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435757#M40139</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-09-23T16:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Detemine if FeatureLayer is visible in current extent.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435758#M40140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Derek.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was looking into FeatureLayer class's property.It looks like I have to use Layer base class and use its visible property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About extent stuff. Since FeatureLayer is added to map, its extent would always intersect map's extent.So, how extent intersection is gonna work for me?Please correct me if I am wrong.Do not mind but I am very much new to this API.I find it very difficult to program with this API.You know, things are easy with SL api.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sanjay.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2011 05:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435758#M40140</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2011-09-25T05:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Detemine if FeatureLayer is visible in current extent.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435759#M40141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It looks like I have to use Layer base class and use its visible property.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Each instance of FeatureLayer does indeed have a visible property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Since FeatureLayer is added to map, its extent would always intersect map's extent.So, how extent intersection is gonna work for me?Please correct me if I am wrong.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would a FeatureLayer's extent always intersect the map's current extent?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2011 22:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435759#M40141</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-09-25T22:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Detemine if FeatureLayer is visible in current extent.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435760#M40142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Derek.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somehow I overlooked this &lt;/SPAN&gt;&lt;STRONG&gt;visible&lt;/STRONG&gt;&lt;SPAN&gt; property of the FeatureLayer.It should solve my issue now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sanjay.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 15:43:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detemine-if-featurelayer-is-visible-in-current/m-p/435760#M40142</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2011-09-26T15:43:38Z</dc:date>
    </item>
  </channel>
</rss>

