<?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: Create Legend for Cluster Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-legend-for-cluster-layer/m-p/171573#M15892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just found out it works with cluster layer directly, as in this sample: &lt;BR /&gt;&lt;A href="http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/test/toc_cluster.html"&gt;http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/test/toc_cluster.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Wow, this is pretty much exactly what I was looking for, and on top of that, seemingly easy to implement.&amp;nbsp; Thanks a ton for the quick response.&amp;nbsp; I'll let you know how it goes, but I don't envision having too many major problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 19:45:19 GMT</pubDate>
    <dc:creator>CameronPlouffe</dc:creator>
    <dc:date>2013-10-01T19:45:19Z</dc:date>
    <item>
      <title>Create Legend for Cluster Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-legend-for-cluster-layer/m-p/171571#M15890</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've recently been employing the ClusterLayer module (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/layers_point_clustering.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jssamples/layers_point_clustering.html&lt;/A&gt;&lt;SPAN&gt;) to represent point clusters in a web mapping application, and I'm interested in being able to display the different symbols for cluster sizes in a Legend object.&amp;nbsp; Essentially, what I want is each classification symbol followed by a label which tells the user the range of the number of points which would be represented by that symbol.&amp;nbsp; I've considered just making a static image to depict this, but that approach seems kind of hackish, and if the symbology were to be changed, I'd like the legend to be able to dynamically reflect that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm aware that the ClusterLayer is a modified GraphicsLayer object, and have read that the best way to display GraphicsLayer symbology in a Legend object is by converting the layer into a feature collection, and from that using a FeatureLayer to populate the Legend.&amp;nbsp; I'm not quite sure how I would go about that using a ClusterLayer, as the symbology is not tied to any particular attribute, but rather the proximity of features to one another.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if anybody has any experience addressing this problem, or a problem similar to it.&amp;nbsp; Obviously, if necessary, I can take the approach of creating a static legend image I suggested above, but I'd like to avoid this if at all possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, let me know if anyone has ideas for a solution to this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 17:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-legend-for-cluster-layer/m-p/171571#M15890</guid>
      <dc:creator>CameronPlouffe</dc:creator>
      <dc:date>2013-10-01T17:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Legend for Cluster Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-legend-for-cluster-layer/m-p/171572#M15891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: nliu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;what I want is each classification symbol followed by a label which tells the user the range of the number of points which would be represented by that symbol.&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You would need loop through the renderer, use esri.symbol.jsonUtils.getShapeDescriptors() to generate a graphic surface for each symbol, then use dojo's graphic API to put it in a DOM element. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that sounds like a lot of work, you can use this widget: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just found out it works with cluster layer directly, as in this sample: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/test/toc_cluster.html" rel="nofollow" target="_blank"&gt;http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/test/toc_cluster.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 19:20:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-legend-for-cluster-layer/m-p/171572#M15891</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-10-01T19:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Legend for Cluster Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-legend-for-cluster-layer/m-p/171573#M15892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just found out it works with cluster layer directly, as in this sample: &lt;BR /&gt;&lt;A href="http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/test/toc_cluster.html"&gt;http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/test/toc_cluster.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Wow, this is pretty much exactly what I was looking for, and on top of that, seemingly easy to implement.&amp;nbsp; Thanks a ton for the quick response.&amp;nbsp; I'll let you know how it goes, but I don't envision having too many major problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 19:45:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-legend-for-cluster-layer/m-p/171573#M15892</guid>
      <dc:creator>CameronPlouffe</dc:creator>
      <dc:date>2013-10-01T19:45:19Z</dc:date>
    </item>
  </channel>
</rss>

