Is it possible assign a HeatmapRenderer to GraphicsLayer?
Like this:
var graphicLayer = new GraphicsLayer();
var heatmapRenderer = new HeatmapRenderer();
graphicLayer.setRenderer(heatmapRenderer);
map.addLayer(graphicLayer);
This code does not work properly.
Fabiano,
your heatmaprender needs to have Parameters, namely colors.
See here:HeatmapRenderer | API Reference | ArcGIS API for JavaScript
Tim
It's not work too.
When I use a FeatureLayer it's work , but with a GraphicsLayer it's not work.
var graphicLayer = new GraphicsLayer();
var heatmapRenderer = new 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
});
graphicLayer.setRenderer(heatmapRenderer);
map.addLayer(graphicLayer);