AnsweredAssumed Answered

SmartMapping.createClassedColorRenderer error

Question asked by AnandiN on Sep 16, 2016
Latest reply on Jun 13, 2017 by n.koehnesri-de-esridist

Hi,

I am trying use smart mapping to color my map based on esri classification methods(quantile/natural-breaks etc). I have a custom basemap and a featurelayer created from a feature collection. But when I use smartMapping.createClassedColorRenderer method, I get the error:

init.js:113 Error: smartMapping.createClassedColorRenderer: error when adding feature layer statistics plugin.
    at Error (native)
    at l (http://js.arcgis.com/3.17/esri/renderers/smartMapping.js:5:108)
    at http://js.arcgis.com/3.17/esri/renderers/smartMapping.js:54:276
    at h (https://js.arcgis.com/3.17/init.js:107:279)
    at then.c.then (https://js.arcgis.com/3.17/init.js:110:152)
    at otherwise (https://js.arcgis.com/3.17/init.js:112:479)
    at Object.createClassedColorRenderer (http://js.arcgis.com/3.17/esri/renderers/smartMapping.js:54:254)
    at requestSucceeded (http://localhost/NCCD_Data_Next/_SupportFiles/DOH_DATA.JScripts.DrawMap.js:338:18)
    at c (https://js.arcgis.com/3.17/init.js:103:393)
    at d (https://js.arcgis.com/3.17/init.js:103:182) "Error: smartMapping.createClassedColorRenderer: error when adding feature layer statistics plugin.

I am not using FeatureLayerStatistics, but even if I include that module, it still gives the same error.

Any ideas? Thanks in advance.

-Anandi

Outcomes