<?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 FeatureLayer not accessable when using the LayerSwipe widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759629#M70381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map where I am using a feature layer to display information in a popup box as the mouse hovers over a parcel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then added a LayerSwipe widget to allow the viewing of 2 different displays of a layer (on/off compared to amount used)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I enable the LayerSwipe&amp;nbsp; widget, I no longer have access to the feature Layer for mouse hover over the parcel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I disable LayerSwipe, I can once again use the feature layer hover.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both work, just not together.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I use both Feature Layer and LayerSwipe in the same map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark Porter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 14:02:13 GMT</pubDate>
    <dc:creator>MarkPorter</dc:creator>
    <dc:date>2014-03-28T14:02:13Z</dc:date>
    <item>
      <title>FeatureLayer not accessable when using the LayerSwipe widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759629#M70381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map where I am using a feature layer to display information in a popup box as the mouse hovers over a parcel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then added a LayerSwipe widget to allow the viewing of 2 different displays of a layer (on/off compared to amount used)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I enable the LayerSwipe&amp;nbsp; widget, I no longer have access to the feature Layer for mouse hover over the parcel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I disable LayerSwipe, I can once again use the feature layer hover.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both work, just not together.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I use both Feature Layer and LayerSwipe in the same map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark Porter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759629#M70381</guid>
      <dc:creator>MarkPorter</dc:creator>
      <dc:date>2014-03-28T14:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not accessable when using the LayerSwipe widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759630#M70382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a sample you could post or link to?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:51:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759630#M70382</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2014-03-28T15:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not accessable when using the LayerSwipe widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759631#M70383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Matt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the links to a temporary demo I set up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I disabled the username and password, so you only need to click on the login button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both maps are the same code with one exception. In the noswipe link, i don't startup the swipe widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This link does not startup the swipe widget and the mouse over the parcel popup works as designed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.eid.ab.ca/demo/noswipe/idars.html"&gt;http://gis.eid.ab.ca/demo/noswipe/idars.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This link has the swipe widget started and the mouse over the parcel popup no longer works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.eid.ab.ca/demo/swipe/idars.html"&gt;http://gis.eid.ab.ca/demo/swipe/idars.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 16:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759631#M70383</guid>
      <dc:creator>MarkPorter</dc:creator>
      <dc:date>2014-03-28T16:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not accessable when using the LayerSwipe widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759632#M70384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I understand the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you try moving the swipe domNode into the map domnode? After the widget is loaded probably.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currenlty, the widget gets placed into the layers div but I think that is causing the hover issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
domConstruct.place(mySwipeWidget.domNode, dom.byId('my_map_id'), 'last');
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:15:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759632#M70384</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2021-12-12T08:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not accessable when using the LayerSwipe widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759633#M70385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Or you can overwrite the widget "_init" function to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;_init: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // set type of swipe
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._setSwipeType();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // events
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._setupEvents();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // check if not enabled
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._enabled();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // we're ready
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.set("loaded", true);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.emit("load", {});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // giddyup
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.swipe();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759633#M70385</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2021-12-12T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not accessable when using the LayerSwipe widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759634#M70386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first suggestion you gave me worked with one exception. I had to change the 'last' to 'first'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The web map now works with my feature hover and the layer swipe both operational as designed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark Porter&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think I understand the problem.&lt;BR /&gt;&lt;BR /&gt;Can you try moving the swipe domNode into the map domnode? After the widget is loaded probably.&lt;BR /&gt;&lt;BR /&gt;Currenlty, the widget gets placed into the layers div but I think that is causing the hover issue.&lt;BR /&gt;&lt;BR /&gt;Like this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;domConstruct.place(mySwipeWidget.domNode, dom.byId('my_map_id'), 'last');&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 18:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759634#M70386</guid>
      <dc:creator>MarkPorter</dc:creator>
      <dc:date>2014-03-28T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not accessable when using the LayerSwipe widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759635#M70387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok great. In API release 3.10 you shouldn't have to move the node anymore.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 19:07:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-accessable-when-using-the/m-p/759635#M70387</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2014-03-28T19:07:19Z</dc:date>
    </item>
  </channel>
</rss>

