<?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 addBreak is not a function in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/addbreak-is-not-a-function/m-p/1059258#M5869</link>
    <description>&lt;P&gt;I am trying to add cluster layer in my Angular project using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="atv"&gt;https://js.arcgis.com/3.36/&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;but I am getting this error&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;this.renderer.addBreak is not a function&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you please let me know how to fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.defaultSym = new this.esriApi.SimpleMarkerSymbol().setSize(4);
    this.renderer = new this.esriApi.ClassBreaksRenderer(this.defaultSym, "clusterCount");
   
    this.renderer.addBreak(0, 25, new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([56, 168, 0, 0.5])));
    this.renderer.addBreak(25, 75,new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([139, 209, 0, 0.5])));
    this.renderer.addBreak(75, 175, new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([255, 255, 0, 0.5])));
    this.renderer.addBreak(175, 400, new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([255, 128, 0, 0.5])));
    this.renderer.addBreak(400, Infinity, new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([255, 0, 0, 0.5])));
    
    this.clusterLayer.setRenderer(this.renderer);
    // this.clusterLayer.renderer = renderer; 
    this.map.addLayer(this.clusterLayer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 May 2021 00:12:47 GMT</pubDate>
    <dc:creator>alabanu</dc:creator>
    <dc:date>2021-05-19T00:12:47Z</dc:date>
    <item>
      <title>addBreak is not a function</title>
      <link>https://community.esri.com/t5/developers-questions/addbreak-is-not-a-function/m-p/1059258#M5869</link>
      <description>&lt;P&gt;I am trying to add cluster layer in my Angular project using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="atv"&gt;https://js.arcgis.com/3.36/&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;but I am getting this error&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;this.renderer.addBreak is not a function&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you please let me know how to fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.defaultSym = new this.esriApi.SimpleMarkerSymbol().setSize(4);
    this.renderer = new this.esriApi.ClassBreaksRenderer(this.defaultSym, "clusterCount");
   
    this.renderer.addBreak(0, 25, new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([56, 168, 0, 0.5])));
    this.renderer.addBreak(25, 75,new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([139, 209, 0, 0.5])));
    this.renderer.addBreak(75, 175, new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([255, 255, 0, 0.5])));
    this.renderer.addBreak(175, 400, new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([255, 128, 0, 0.5])));
    this.renderer.addBreak(400, Infinity, new this.esriApi.SimpleFillSymbol().setColor(new this.esriApi.Color([255, 0, 0, 0.5])));
    
    this.clusterLayer.setRenderer(this.renderer);
    // this.clusterLayer.renderer = renderer; 
    this.map.addLayer(this.clusterLayer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 00:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/addbreak-is-not-a-function/m-p/1059258#M5869</guid>
      <dc:creator>alabanu</dc:creator>
      <dc:date>2021-05-19T00:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: addBreak is not a function</title>
      <link>https://community.esri.com/t5/developers-questions/addbreak-is-not-a-function/m-p/1059867#M5872</link>
      <description>&lt;P&gt;That error usually pops up when the imported module isn't matching up with its import name. How is that section of your code set up?&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 12:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/addbreak-is-not-a-function/m-p/1059867#M5872</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-05-20T12:15:03Z</dc:date>
    </item>
  </channel>
</rss>

