<?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: HeatMap from QueryTask in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337560#M8660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. I able to get it working, just need to fix the code to allow the user to turn the heat map layer off/on outside of the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, on another note. I was able to get the HeatMap function to work for QueryTasks. However, I have several FindTasks that we are also using. But the FindTask and FindResult doesnt seem to support 'Geometry' as it does with a FeatureSet with a QueryTask. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know if there is a work around for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 15:28:43 GMT</pubDate>
    <dc:creator>gabrielvazquez</dc:creator>
    <dc:date>2011-09-22T15:28:43Z</dc:date>
    <item>
      <title>HeatMap from QueryTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337557#M8657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to create a heatmap layer from points in a graphic layer, which are the result of various Querytasks and Findtasks. However, I am having issues assisging the geometry from the query results. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found a good example that got me some of the way through the problem, but this works for featurelayers. Similar to this thread &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/34724-HeatMapLayer-based-on-points-from-FeatureLayer"&gt;http://forums.arcgis.com/threads/34724-HeatMapLayer-based-on-points-from-FeatureLayer&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does some one have an example of code they can provide for mapping query task results to a heatmaplayer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 13:10:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337557#M8657</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-09-15T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: HeatMap from QueryTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337558#M8658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be able to do something like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void QueryTask_ExecuteCompleted(object sender, QueryEventArgs e)
{
 if (e.FeatureSet == null) return;
 var heatLayer = MyMap.Layers["MyHeatMapLayer"] as HeatMapLayer;
 foreach (var g in e.FeatureSet)
 {
&amp;nbsp; if (g.Geometry is MapPoint)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var mp = Geometry.Clone(g.Geometry) as MapPoint;
&amp;nbsp;&amp;nbsp; heatLayer.HeatMapPoints.Add(mp);
&amp;nbsp; }
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337558#M8658</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: HeatMap from QueryTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337559#M8659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, thank you Jennifer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 13:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337559#M8659</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-09-16T13:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: HeatMap from QueryTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337560#M8660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. I able to get it working, just need to fix the code to allow the user to turn the heat map layer off/on outside of the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, on another note. I was able to get the HeatMap function to work for QueryTasks. However, I have several FindTasks that we are also using. But the FindTask and FindResult doesnt seem to support 'Geometry' as it does with a FeatureSet with a QueryTask. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know if there is a work around for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:28:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337560#M8660</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-09-22T15:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: HeatMap from QueryTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337561#M8661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FindTask.FindParameters also have a ReturnGeometry property, which you can set to True.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
findParameters.ReturnGeometry = true;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the ExecuteCompleted event handler, notice that you can get geometry:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void findTask_ExecuteCompleted(object sender, FindEventArgs e)
{
 foreach (var r in e.FindResults)
 {
&amp;nbsp; var g = r.Feature.Geometry;
 }&amp;nbsp; 
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337561#M8661</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T15:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: HeatMap from QueryTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337562#M8662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. I did have the return Geometry set. Just had to fix the code for the geometry. Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 16:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/heatmap-from-querytask/m-p/337562#M8662</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-09-22T16:56:50Z</dc:date>
    </item>
  </channel>
</rss>

