<?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 visiblelayers change event? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/visiblelayers-change-event/m-p/175678#M6949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there such a thing as a visiblelayers change event? I would have thought so, but I've been looking around in the docs for an hour and can't find anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's a "visibility-change" event but that's only fired when the visibility on the entire service is toggled on/off. What I'm looking for is an event I can listen for to know if some code somewhere has called setVisibleLayers on the service and changed which layers within the service are visible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only idea I can come up with is that I have to keep my own copy of the array of current visiblelayers that I compare whenever there is an "update-end" instead and, if there is a change, do my thing. However, I can't believe there's no event triggered by the JSAPI when this happens...I think I just can't find it because it's not where I'm expecting it to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jtm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 15:45:59 GMT</pubDate>
    <dc:creator>JoanneMcGraw</dc:creator>
    <dc:date>2014-09-23T15:45:59Z</dc:date>
    <item>
      <title>visiblelayers change event?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/visiblelayers-change-event/m-p/175678#M6949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there such a thing as a visiblelayers change event? I would have thought so, but I've been looking around in the docs for an hour and can't find anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's a "visibility-change" event but that's only fired when the visibility on the entire service is toggled on/off. What I'm looking for is an event I can listen for to know if some code somewhere has called setVisibleLayers on the service and changed which layers within the service are visible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only idea I can come up with is that I have to keep my own copy of the array of current visiblelayers that I compare whenever there is an "update-end" instead and, if there is a change, do my thing. However, I can't believe there's no event triggered by the JSAPI when this happens...I think I just can't find it because it's not where I'm expecting it to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jtm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/visiblelayers-change-event/m-p/175678#M6949</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2014-09-23T15:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: visiblelayers change event?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/visiblelayers-change-event/m-p/175679#M6950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this is rather funny... apparently I asked the same question 2 years ago and never got an answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/65594?sr=search&amp;amp;searchId=f6d83fcd-a437-4b3a-83f1-1a6b7d866c00&amp;amp;searchIndex=7#65594" title="https://community.esri.com/message/65594?sr=search&amp;amp;searchId=f6d83fcd-a437-4b3a-83f1-1a6b7d866c00&amp;amp;searchIndex=7#65594"&gt;https://community.esri.com/message/65594?sr=search&amp;amp;searchId=f6d83fcd-a437-4b3a-83f1-1a6b7d866c00&amp;amp;searchIndex=7#65594&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it's more difficult than I thought&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/visiblelayers-change-event/m-p/175679#M6950</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2014-09-23T15:50:25Z</dc:date>
    </item>
  </channel>
</rss>

