AnsweredAssumed Answered

HeatmapRenderer undefined

Question asked by gmonzon on Sep 3, 2015
Latest reply on Sep 3, 2015 by kenbuja

Hi, Im adding a esri.renderers.HeatmapRenderer layer to my base map.

But, when i create the redender using  esri.renderers,HeatmapRenderer , the  third level appear as undefined.

at the top of the js a include  the following requires

 

dojo.require("esri.map");

dojo.require("esri.layers.FeatureLayer");

dojo.require("esri.renderers.HeatmapRenderer");

dojo.require("esri.Color");

dojo.require("dojo.parser");

dojo.require("esri.renderers.ClassBreaksRenderer");

 

 

my code looks

var densidad = addLayer(url, "Densidad", "*", 0.8); .

var renderDensidad = new esri.renderers.HeatmapRenderer({

            colors: ["rgba(0, 0, 255, 0)", "rgb(0, 0, 255)", "rgb(255, 0, 255)", "rgb(255, 0, 0)"],

            blurRadius: 12,

            maxPixelIntensity: 250,

            minPixelIntensity: 10

        });

densidad .setRenderer(renderDensidad );

map.addLayer(densidad );

Attachments

Outcomes