<?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: Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175309#M16293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: (app.Layer is a FeatureLayer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//adding a new Field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (feature in app.Layer.graphics) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var attributes = app.Layer.graphics[feature].attributes;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;attributes["DIFF"]&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;lt;someValue&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging app.Layer.graphics.attributes shows "DIFF" with the contents &amp;lt;someValue&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//here&amp;nbsp;creating the ClassBreaksDefinition,&amp;nbsp;GenerateRendererTask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//here Comes the error: unable to find classificationField&lt;/P&gt;&lt;P&gt;generateRenderer.execute(params, applyRenderer, errorHandler);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 14:14:32 GMT</pubDate>
    <dc:creator>ChristianPagel1</dc:creator>
    <dc:date>2017-03-09T14:14:32Z</dc:date>
    <item>
      <title>Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175305#M16289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var classDef = new ClassBreaksDefinition();&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef.classificationField = app.currentAttribute; &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;assign an Array here&amp;nbsp; instead of the line before &amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Known values: natural-breaks | equal-interval | quantile | standard-deviation | geometrical-interval&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef.classificationMethod = "natural-breaks";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef.breakCount = 5;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; classDef.baseSymbol = app.symbol;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 10:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175305#M16289</guid>
      <dc:creator>ChristianPagel1</dc:creator>
      <dc:date>2017-03-01T10:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175306#M16290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean a symbology based on multiple values? &amp;nbsp;I think it should be possible if you do it with a weighted index approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 10:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175306#M16290</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-03-01T10:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175307#M16291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hint. &lt;SPAN&gt;GenerateRendererTask requires a Featurelayer , therefor it's impossible to work with arrays.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I try to append one Calculation-Field to the Featurelayer&amp;nbsp;to commit this as classificationField.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 09:18:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175307#M16291</guid>
      <dc:creator>ChristianPagel1</dc:creator>
      <dc:date>2017-03-08T09:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175308#M16292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would you do with that ClassBreaksDefinition?&lt;/P&gt;&lt;P&gt;Its purpose is to create renderer, which you will be then using to update the symbology of a graphicslayer or featurelayer. If there is no field with the values in the array, the symbology will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are talking about creating class breaks, with values(min, max symbol etc) stored in an array. that might be possible. You need not use GenerateRendererTask. You can simply create a new ClassBreaksRenderer and update the infos property with the desired valid values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 14:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175308#M16292</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2017-03-08T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175309#M16293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: (app.Layer is a FeatureLayer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//adding a new Field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (feature in app.Layer.graphics) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var attributes = app.Layer.graphics[feature].attributes;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;attributes["DIFF"]&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;lt;someValue&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging app.Layer.graphics.attributes shows "DIFF" with the contents &amp;lt;someValue&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//here&amp;nbsp;creating the ClassBreaksDefinition,&amp;nbsp;GenerateRendererTask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//here Comes the error: unable to find classificationField&lt;/P&gt;&lt;P&gt;generateRenderer.execute(params, applyRenderer, errorHandler);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175309#M16293</guid>
      <dc:creator>ChristianPagel1</dc:creator>
      <dc:date>2017-03-09T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175310#M16294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot add a field into a FeatureLayer at runtime. Unless, you do it every time the FeatureLayer updates itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of mode are you using for the FeatureLayer. If it is AUTO or ONDEMAND, you might have problems, because the content keeps getting updated when ever the map extent changes. You might have better luck with SNAPSHOT as the features are retrieved only once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:30:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175310#M16294</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2017-03-09T14:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175311#M16295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Problem seemed to be simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculate the difference between two attributes from a Featureclass during runtime, generate Classbreaks from the difference-Attribute and rerender the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think&amp;nbsp;I have to look for other Solutions ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175311#M16295</guid>
      <dc:creator>ChristianPagel1</dc:creator>
      <dc:date>2017-03-09T14:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to generate a ClassBreaksDefinition from an Array instead of an attribute from a Featureclass ???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175312#M16296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at the &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/classbreaksrenderer-amd.html#valueexpression" title="https://developers.arcgis.com/javascript/3/jsapi/classbreaksrenderer-amd.html#valueexpression"&gt;valueExpression&lt;/A&gt;&amp;nbsp; in the ClassBreaksRenderer. It uses the new Arcade format, which can be used to small calculation and use that as alternative for attributeField.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-generate-a-classbreaksdefinition/m-p/175312#M16296</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2017-03-09T14:56:41Z</dc:date>
    </item>
  </channel>
</rss>

