<?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: Feature layer mouseover overlay flicker in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723825#M67203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's the ticket, Derek. This also solves a pan sticking problem in Chrome when a user was clicking on the wildName overlay and the map was getting stuck in pan mode. Thanks much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 17:30:45 GMT</pubDate>
    <dc:creator>LisaEidson</dc:creator>
    <dc:date>2012-04-12T17:30:45Z</dc:date>
    <item>
      <title>Feature layer mouseover overlay flicker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723822#M67200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a feature layer that I use to hide and show an overlayed div with information about the polygon that is moused over. This works fine, however, if you move your mouse to be on top of the overlayed div (bottom left corner) the div begins to flicker. This seems like perhaps some sort of event propagation issue, but I've tried a variety of things and haven't been able to remove the flickering. Any guidance would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.wilderness.net/maptest_featureLayer.htm" rel="nofollow" target="_blank"&gt;http://www.wilderness.net/maptest_featureLayer.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 21:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723822#M67200</guid>
      <dc:creator>LisaEidson</dc:creator>
      <dc:date>2012-04-11T21:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer mouseover overlay flicker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723823#M67201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am pretty new on the javascript side but I would imagine that it is because when the mouse is over the div, it fires the onMouseOut function of the featurelayer.&amp;nbsp; Then the div disappears and it finds it back over the feature so it fires the onMouseOver to show the div again, repeating the cycle. Could you set a timeout before the div appears or disappears, giving you time to set a value if the cursor is over the div and have it only hide the div if that value is 0?&amp;nbsp; That would be kind of a clunky solution if it worked though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 02:12:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723823#M67201</guid>
      <dc:creator>PaulBushore</dc:creator>
      <dc:date>2012-04-12T02:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer mouseover overlay flicker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723824#M67202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paul's right??? the issue is that when you mouse over the wildName div, mouseOut is fired by the feature layer. An easy way to handle this is to check if the point associated with the mouseOut event is inside the associated feature. These properties are available on the event object. The code would look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;dojo.connect(featureOutlines, "onMouseOut", function(evt){ // removes wilderness name &amp;nbsp; if ( ! evt.graphic.geometry.contains(evt.mapPoint) ) { &amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId("wildName").innerHTML = ""; &amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.style(dojo.byId("wildName"), "display", "none"); &amp;nbsp; } });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here it is on JSFiddle:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/rDyk4/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/rDyk4/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 02:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723824#M67202</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-12T02:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer mouseover overlay flicker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723825#M67203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's the ticket, Derek. This also solves a pan sticking problem in Chrome when a user was clicking on the wildName overlay and the map was getting stuck in pan mode. Thanks much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-mouseover-overlay-flicker/m-p/723825#M67203</guid>
      <dc:creator>LisaEidson</dc:creator>
      <dc:date>2012-04-12T17:30:45Z</dc:date>
    </item>
  </channel>
</rss>

