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 );
Your code uses
dojo.require("esri.renderers.HeatmapRenderer"); and var renderDensidad = new esri.renderers.HeatmapRenderer({
but it should be
dojo.require("esri.renderer.HeatmapRenderer") 'no s at the end of renderer and var renderDensidad = new esri.renderer.HeatmapRenderer({
See the legacy help for this. You'll run into the same issue with your ClassBreaksRenderer