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
Anandi,
might it have something to do with this: Statistics missing on Promise object?
Best regards
Nik
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.