<?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: Info Window popup on mouse hover without using graphics in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322081#M29630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I think that's a good strategy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 21:50:47 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2011-05-24T21:50:47Z</dc:date>
    <item>
      <title>Info Window popup on mouse hover without using graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322078#M29627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: zorbac&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My application uses a graphics layer to pop up an info window on mouse over event. This works great as long as there are a limited number of graphics, but as the number of graphics increases (over a thousand now and increasing), it is seriously affecting performance. Performance is degraded both at start-up of app, when graphics are created (I have determined that the slow part is when they are added, one by one to the map), and also whenever the map is refreshed by pan or zoom. My conclusion is that graphics are not very scalable so I need an alternative way to achieve this functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, can you do this without graphics? I know I can use the identify task for a click event, but I need this to work with a mouse over, not click. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If, as I suspect, this does require graphics or a feature layer (a type of graphic), I'd appreciate any suggestions to improve performance. As I said, graphic layer is used at this time. Would switching to a feature layer have any effect on performance? My other thought is to only add the graphics to the map when they are needed, which is only at large scales, and only when the user has a certain tool selected. I think this would work, but it seems a bit complicated. Testing for current scale and tool is not too hard but keeping track of which graphics have already been added so as not to add them multiple times could be tricky. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The application is built with the 1.5 version api, but I can upgrade to 2.3 or whatever to take advantage of feature layers. I can post some code if helpful, but right now I'm just looking for ideas or possible solutions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 20:31:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322078#M29627</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-24T20:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Info Window popup on mouse hover without using graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322079#M29628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would seriously consider moving to a feature layer. If you use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/featurelayer.htm"&gt;ONDEMAND mode&lt;/A&gt;&lt;SPAN&gt;, only features in the current extent are fetched and drawn. This should minimize the amount of graphics on your map at any one time. You can use the same infoWindow on hover strategy you're currently using with graphics with a feature layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 20:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322079#M29628</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-24T20:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Info Window popup on mouse hover without using graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322080#M29629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: zorbac&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. Yes, I am looking into the feature layer. On-demand mode looks like just what i need. One issue I can forsee - what if the user zooms to full extent of the map? The feature layer would then request all features and I would be back to my performance issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed that feature layers honor the scale dependancies of the layer in the service from which they are derived. So, if I set that layer to only be visible at large scales, maybe this would solve the above issue? Does this make sense?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 21:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322080#M29629</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-24T21:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Info Window popup on mouse hover without using graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322081#M29630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I think that's a good strategy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 21:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322081#M29630</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-24T21:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Info Window popup on mouse hover without using graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322082#M29631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: stevel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Zorba,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feature layers with a scale dependency would definitely help here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also experiment with the maxAllowableOffset parameter, which will simplify line and polygon layers on-the-fly. So when you zoom out, you could display a simplified version of complex layers, which is a lot faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the sample at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_generalize.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_generalize.html&lt;/A&gt;&lt;SPAN&gt; and View Source to discover how it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For point features, you could use a clusterer. There's nothing out-of-the-box for this yet, but there's a good sample at &lt;/SPAN&gt;&lt;A href="http://geochalkboard.wordpress.com/2010/09/09/clustering-with-the-arcgis-server-javascript-api/"&gt;http://geochalkboard.wordpress.com/2010/09/09/clustering-with-the-arcgis-server-javascript-api/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS you should definitely upgrade to the latest version of the API!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 22:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322082#M29631</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-25T22:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Info Window popup on mouse hover without using graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322083#M29632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: zorbac&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the graphics in my case are points. I checked out the demo of clustering. Very cool. thanks for the tip. I have gone ahead with upgrading to 2.3 api. It was pretty smooth except it caused some wierd style deffects to some of the dojo widgets in the app like the datagrid and combobox. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Zorba&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 14:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-window-popup-on-mouse-hover-without-using/m-p/322083#M29632</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-26T14:59:32Z</dc:date>
    </item>
  </channel>
</rss>

