<?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: Combining my gfx shapes with checkboxes for a menu in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/combining-my-gfx-shapes-with-checkboxes-for-a-menu/m-p/8906#M834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up creating several images from my gfx that I had created and using those within a filteringSelect. It's not exactly what I had in mind, but it does give the user a color ramp to choose from.&amp;nbsp; The only thing I don't like about this is that even though my image shows up in the dropdown, the display within the filteringSelect box is still just my value.&amp;nbsp; I see that I can specify labelAttr and labelType.&amp;nbsp; Maybe I could be using something else for my value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; function populateColorBox (){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colorStore = new Memory({data: [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 1, value:"Greens", label:"&amp;lt;img src='./images/arrayGreen.png' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 2, value:"Reds", label:"&amp;lt;img src='./images/arrayRed.png' alt='red' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 3, value:"Blues", label:"&amp;lt;img src='./images/arrayBlue.png' alt='blue' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 4, value:"Oranges", label:"&amp;lt;img src='./images/arrayOrange.png' alt='orange' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 5, value:"Grays", label:"&amp;lt;img src='./images/arrayGray.png' alt='gray' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 6, value:"Purples", label:"&amp;lt;img src='./images/arrayPurple.png' alt='purple' /&amp;gt;"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var colorSelect2 = new FilteringSelect({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "colorSelect2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value: 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store: colorStore,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchAttr: "value",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; name: "xyz",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelAttr: "label",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelType: "html"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }, dom.byId("colorDiv"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; colorSelect2.startup();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 21:43:13 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2014-08-12T21:43:13Z</dc:date>
    <item>
      <title>Combining my gfx shapes with checkboxes for a menu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/combining-my-gfx-shapes-with-checkboxes-for-a-menu/m-p/8905#M833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some code on github that lets you specify the number of classifications, color and type to create thematic maps.&amp;nbsp; It included a set of color ramps already written up from colorbrewer, so I didn't have to dig it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no GUI on this set of functions that calculate the classifications. One thing I'd like to do, since I have all these great colors already, is create graphics from the color ramps and let that be what the user clicks on.&amp;nbsp; Unfortunately I don't see that I can add that kind of click event on a shape.&amp;nbsp; There are click events, but I don't see how I can pass the color name as an argument, anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next thing would be to add a checkbox next to the ramps.&amp;nbsp; This is where I'm getting stuck.&amp;nbsp; Since I'm dealing with gfx, I'm not sure where to add checkboxes next to each graphic.&amp;nbsp; Mostly it's Friday afternoon and I'm getting tired. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a fiddle for this.&amp;nbsp; For some reason it is only flashing the colors instead of leaving the color graphics on the screen.&amp;nbsp; If someone is available to help me out on this, I think it would be a nice way of offering color choices, rather than presenting either a list of color names, or the generic color palette.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/8bx4vdv2/"&gt;http://jsfiddle.net/8bx4vdv2/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm getting stuck on the fiddle because I'm attempting to only paste part of the colors I have available and I made a syntax error somewhere. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 20:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/combining-my-gfx-shapes-with-checkboxes-for-a-menu/m-p/8905#M833</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-08-08T20:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combining my gfx shapes with checkboxes for a menu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/combining-my-gfx-shapes-with-checkboxes-for-a-menu/m-p/8906#M834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up creating several images from my gfx that I had created and using those within a filteringSelect. It's not exactly what I had in mind, but it does give the user a color ramp to choose from.&amp;nbsp; The only thing I don't like about this is that even though my image shows up in the dropdown, the display within the filteringSelect box is still just my value.&amp;nbsp; I see that I can specify labelAttr and labelType.&amp;nbsp; Maybe I could be using something else for my value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; function populateColorBox (){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colorStore = new Memory({data: [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 1, value:"Greens", label:"&amp;lt;img src='./images/arrayGreen.png' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 2, value:"Reds", label:"&amp;lt;img src='./images/arrayRed.png' alt='red' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 3, value:"Blues", label:"&amp;lt;img src='./images/arrayBlue.png' alt='blue' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 4, value:"Oranges", label:"&amp;lt;img src='./images/arrayOrange.png' alt='orange' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 5, value:"Grays", label:"&amp;lt;img src='./images/arrayGray.png' alt='gray' /&amp;gt;"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {id: 6, value:"Purples", label:"&amp;lt;img src='./images/arrayPurple.png' alt='purple' /&amp;gt;"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var colorSelect2 = new FilteringSelect({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "colorSelect2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value: 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store: colorStore,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchAttr: "value",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; name: "xyz",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelAttr: "label",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelType: "html"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }, dom.byId("colorDiv"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; colorSelect2.startup();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 21:43:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/combining-my-gfx-shapes-with-checkboxes-for-a-menu/m-p/8906#M834</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-08-12T21:43:13Z</dc:date>
    </item>
  </channel>
</rss>

