<?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: Issue with using Unique value groups with field and field1 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1324590#M82132</link>
    <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-blog/arcgis-api-for-javascript-4-25-and-3-42/bc-p/1234742/highlight/true#M198" target="_self"&gt;still undocumented&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;JSON structure for specifying it with uniqueValueGroups&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The JSON structure has actually been documented in the web map specification ever since the concept was introduced. You can find it here:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/uniqueValueRenderer/" target="_blank"&gt;https://developers.arcgis.com/web-map-specification/objects/uniqueValueRenderer/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/uniqueValueGroup/" target="_blank"&gt;https://developers.arcgis.com/web-map-specification/objects/uniqueValueGroup/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/uniqueValueClass/" target="_blank"&gt;https://developers.arcgis.com/web-map-specification/objects/uniqueValueClass/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It includes examples with multiple scenarios. Perhaps we should improve the JS documentation to link to the web map specification.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2023 22:00:33 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2023-08-31T22:00:33Z</dc:date>
    <item>
      <title>Issue with using Unique value groups with field and field1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1291228#M81220</link>
      <description>&lt;P&gt;Hi, I would like to find out is using Unique Value Groups, with "field" and "field2", still support putting list of values in the values field?&lt;/P&gt;&lt;P&gt;It is working fine when using it with just one "field" (highlighted in green), but it does not work when "field2" is added into the conditions (highlighted in red).&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;&lt;SPAN&gt;renderer &lt;/SPAN&gt;= {&lt;BR /&gt;    &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"unique-value"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;field&lt;/SPAN&gt;: &lt;SPAN&gt;"test1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;uniqueValueGroups&lt;/SPAN&gt;: [{&lt;BR /&gt;        &lt;SPAN&gt;heading&lt;/SPAN&gt;: &lt;SPAN&gt;"Heading 1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;classes&lt;/SPAN&gt;: [{&lt;BR /&gt;            &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"Label 1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;symbol&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;style&lt;/SPAN&gt;: &lt;SPAN&gt;"circle"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"#58ff60"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;outline&lt;/SPAN&gt;: {&lt;BR /&gt;                    &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"rgba(140,255,120,0.5)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                    &lt;SPAN&gt;width&lt;/SPAN&gt;: &lt;SPAN&gt;6&lt;BR /&gt;&lt;/SPAN&gt;                }&lt;BR /&gt;            }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;values&lt;/SPAN&gt;&lt;FONT color="#339966"&gt;: [&lt;SPAN&gt;"testValue"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"testValue1"&lt;/SPAN&gt;]&lt;/FONT&gt;&lt;BR /&gt;        }&lt;SPAN&gt;, &lt;/SPAN&gt;{&lt;BR /&gt;            &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"Label 2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;symbol&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;style&lt;/SPAN&gt;: &lt;SPAN&gt;"circle"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"#58ff60"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;outline&lt;/SPAN&gt;: {&lt;BR /&gt;                    &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"rgba(140,255,120,0.5)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                    &lt;SPAN&gt;width&lt;/SPAN&gt;: &lt;SPAN&gt;6&lt;BR /&gt;&lt;/SPAN&gt;                }&lt;BR /&gt;            }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;values&lt;/SPAN&gt;: &lt;SPAN&gt;"testValue3"&lt;BR /&gt;&lt;/SPAN&gt;        }]&lt;BR /&gt;    }]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;&lt;SPAN&gt;renderer &lt;/SPAN&gt;= {&lt;BR /&gt;    &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"unique-value"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;field&lt;/SPAN&gt;: &lt;SPAN&gt;"test1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;field2&lt;/SPAN&gt;: &lt;SPAN&gt;"test2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;uniqueValueGroups&lt;/SPAN&gt;: [{&lt;BR /&gt;        &lt;SPAN&gt;heading&lt;/SPAN&gt;: &lt;SPAN&gt;"Heading 1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;classes&lt;/SPAN&gt;: [{&lt;BR /&gt;            &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"Label 1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;symbol&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;style&lt;/SPAN&gt;: &lt;SPAN&gt;"circle"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"#58ff60"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;outline&lt;/SPAN&gt;: {&lt;BR /&gt;                    &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"rgba(140,255,120,0.5)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                    &lt;SPAN&gt;width&lt;/SPAN&gt;: &lt;SPAN&gt;6&lt;BR /&gt;&lt;/SPAN&gt;                }&lt;BR /&gt;            }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;values&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;: [&lt;SPAN&gt;"testValue"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"testValue1"&lt;/SPAN&gt;]&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;value2&lt;/SPAN&gt;: &lt;SPAN&gt;"testValve2"&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;BR /&gt;        }&lt;SPAN&gt;, &lt;/SPAN&gt;{&lt;BR /&gt;            &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"Label 2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;symbol&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;style&lt;/SPAN&gt;: &lt;SPAN&gt;"circle"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"#58ff60"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;outline&lt;/SPAN&gt;: {&lt;BR /&gt;                    &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"rgba(140,255,120,0.5)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                    &lt;SPAN&gt;width&lt;/SPAN&gt;: &lt;SPAN&gt;6&lt;BR /&gt;&lt;/SPAN&gt;                }&lt;BR /&gt;            }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;values&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;SPAN&gt;value&lt;/SPAN&gt;: &lt;SPAN&gt;"testValue3"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;value2&lt;/SPAN&gt;: &lt;SPAN&gt;"testValve4"&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;BR /&gt;        }]&lt;BR /&gt;    }]&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 18:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1291228#M81220</guid>
      <dc:creator>LayEngTan</dc:creator>
      <dc:date>2023-05-19T18:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Unique value groups with field and field1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1291322#M81221</link>
      <description>&lt;P&gt;The first scenario works because passing an array of strings to the values property is a convenience pattern when you're only working with one value. The second example is using incorrect syntax. You can't pass an array to values.value or values.value2. The values property takes an array of objects, like this... That way you can pair up values that go together in a&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const renderer = {
    type: "unique-value",
    field: "test1",
    field2: "test2",
    uniqueValueGroups: [{
        heading: "Heading 1",
        classes: [{
            label: "Label 1",
            symbol: {
                type: "simple-marker",
                style: "circle",
                color: "#58ff60",
                outline: {
                    color: "rgba(140,255,120,0.5)",
                    width: 6
                }
            },
            values: [{
                value: "testValue"
            }, {
                value: "testValue1",
            }, {
                value2: "testValve2"
            }]
        }, {
            label: "Label 2",
            symbol: {
                type: "simple-marker",
                style: "circle",
                color: "#58ff60",
                outline: {
                    color: "rgba(140,255,120,0.5)",
                    width: 6
                }
            },
            values: {
                value: "testValue3",
                value2: "testValve4"
            }
        }]
    }]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if you want field1 and field2 values combined to represent one category, you specify the values for each within a single object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;values: [{
  value: "testValu1",
  value2: "testValue2"
}, {
  value: "testValue3",
}, {
  value2: "testValve4"
}]&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 May 2023 23:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1291322#M81221</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2023-05-19T23:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Unique value groups with field and field1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1291343#M81222</link>
      <description>&lt;P&gt;Hi KristianEkenes,&lt;/P&gt;&lt;P&gt;Thank you for the solutions. However, when using field and field2 together, each single object need to have both value and value2. I have tested it and it worked. Thank you.&lt;/P&gt;&lt;P&gt;Here is the working version (highlighted in green).&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;&lt;SPAN&gt;renderer &lt;/SPAN&gt;= {&lt;BR /&gt;    &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"unique-value"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;field&lt;/SPAN&gt;: &lt;SPAN&gt;"test1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;field2&lt;/SPAN&gt;: &lt;SPAN&gt;"test2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;uniqueValueGroups&lt;/SPAN&gt;: [{&lt;BR /&gt;        &lt;SPAN&gt;heading&lt;/SPAN&gt;: &lt;SPAN&gt;"Heading 1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;classes&lt;/SPAN&gt;: [{&lt;BR /&gt;            &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"Label 1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;symbol&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;style&lt;/SPAN&gt;: &lt;SPAN&gt;"circle"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"#58ff60"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;outline&lt;/SPAN&gt;: {&lt;BR /&gt;                    &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"rgba(140,255,120,0.5)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                    &lt;SPAN&gt;width&lt;/SPAN&gt;: &lt;SPAN&gt;6&lt;BR /&gt;&lt;/SPAN&gt;                }&lt;BR /&gt;            }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;FONT color="#339966"&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;: [{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;                &lt;SPAN&gt;value&lt;/SPAN&gt;: &lt;SPAN&gt;"testValue"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;value2&lt;/SPAN&gt;: &lt;SPAN&gt;"testValve2"&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;SPAN&gt;, &lt;/SPAN&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;                &lt;SPAN&gt;value&lt;/SPAN&gt;: &lt;SPAN&gt;"testValue1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;value2&lt;/SPAN&gt;: &lt;SPAN&gt;"testValve2"&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;            ]&lt;/FONT&gt;&lt;BR /&gt;        }&lt;SPAN&gt;, &lt;/SPAN&gt;{&lt;BR /&gt;            &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"Label 2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;symbol&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;SPAN&gt;type&lt;/SPAN&gt;: &lt;SPAN&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;style&lt;/SPAN&gt;: &lt;SPAN&gt;"circle"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"#58ff60"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;outline&lt;/SPAN&gt;: {&lt;BR /&gt;                    &lt;SPAN&gt;color&lt;/SPAN&gt;: &lt;SPAN&gt;"rgba(140,255,120,0.5)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                    &lt;SPAN&gt;width&lt;/SPAN&gt;: &lt;SPAN&gt;6&lt;BR /&gt;&lt;/SPAN&gt;                }&lt;BR /&gt;            }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;values&lt;/SPAN&gt;: {&lt;BR /&gt;                &lt;SPAN&gt;value&lt;/SPAN&gt;: &lt;SPAN&gt;"testValue3"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;value2&lt;/SPAN&gt;: &lt;SPAN&gt;"testValve4"&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;BR /&gt;        }&lt;BR /&gt;        ]&lt;BR /&gt;    }&lt;BR /&gt;    ]&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 09:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1291343#M81222</guid>
      <dc:creator>LayEngTan</dc:creator>
      <dc:date>2023-05-20T09:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Unique value groups with field and field1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1324586#M82130</link>
      <description>&lt;P&gt;If anyone is looking to create a multi-field&amp;nbsp;UniqueValueRenderer via&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-jsonUtils.html#fromJSON" target="_self"&gt;&lt;SPAN&gt;rendererJsonUtils.fromJSON&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;or &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#fromJSON" target="_self"&gt;UniqueValueRenderer.fromJSON&lt;/A&gt;, the &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-blog/arcgis-api-for-javascript-4-25-and-3-42/bc-p/1234742/highlight/true#M198" target="_self"&gt;still undocumented&lt;/A&gt; JSON structure for specifying it with uniqueValueGroups has the corresponding structure below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
	"type": "uniqueValue",
	"field1": "test1",
	"field2": "test2",
	"uniqueValueGroups": [{
		"heading": "Heading 1",
		"classes": [{
			"label": "Label 1",
			"symbol": {
				"type": "esriSMS",
				"style": "esriSMSCircle",
				"color": [88,255,96,255],
				"outline": {
					"color": [140,255,120,128],
					"width": 6
				}
			},
			"values": [
				["testValue","testValue2"],
				["testValue1","testValue2"]
			]
		}, {
			"label": "Label 2",
			"symbol": {
				"type": "esriSMS",
				"style": "esriSMSCircle",
				"color": [88,255,96,255],
				"outline": {
					"color": [140,255,120,128],
					"width": 6
				}
			},
			"values": [
				["testValue3","testValue4"]
			]
		}]
	}]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the "values" property must be specified as an Array of arrays.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 21:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1324586#M82130</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-31T21:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Unique value groups with field and field1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1324590#M82132</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-blog/arcgis-api-for-javascript-4-25-and-3-42/bc-p/1234742/highlight/true#M198" target="_self"&gt;still undocumented&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;JSON structure for specifying it with uniqueValueGroups&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The JSON structure has actually been documented in the web map specification ever since the concept was introduced. You can find it here:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/uniqueValueRenderer/" target="_blank"&gt;https://developers.arcgis.com/web-map-specification/objects/uniqueValueRenderer/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/uniqueValueGroup/" target="_blank"&gt;https://developers.arcgis.com/web-map-specification/objects/uniqueValueGroup/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/uniqueValueClass/" target="_blank"&gt;https://developers.arcgis.com/web-map-specification/objects/uniqueValueClass/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It includes examples with multiple scenarios. Perhaps we should improve the JS documentation to link to the web map specification.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 22:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1324590#M82132</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2023-08-31T22:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Unique value groups with field and field1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1324838#M82136</link>
      <description>&lt;P&gt;Thank you, I stand corrected.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 17:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-with-using-unique-value-groups-with-field/m-p/1324838#M82136</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-09-01T17:13:21Z</dc:date>
    </item>
  </channel>
</rss>

