AnsweredAssumed Answered

How to make a timeslider with heatmap from featureLayer

Question asked by endlessdsire on Jun 21, 2017
Latest reply on Jun 21, 2017 by endlessdsire

Hello community,

I want to make a timeslider with a Heatmap made from a featureLayer that i have in my rest service but i wanna know if somebody has made anything similar or how is the proper way to do it.


I have this for makin the heatmap and it works, but i want to make a timeslider with it.

var serviceUrl = "myserver/MapServer/1?f=json&token=" + resolve;
var heatmapFeatureLayerOptions = {
mode: FeatureLayer.MODE_SNAPSHOT,
outFields: ["*"]
var heatmapFeatureLayer = new FeatureLayer(serviceUrl, heatmapFeatureLayerOptions);
var heatmapRenderer = new HeatmapRenderer({
colors: ["rgba(0,255,0, 0)","rgb(255, 255, 0)","rgb(255, 0, 0)"],
blurRadius: 16,
maxPixelIntensity: 250,
minPixelIntensity: 5

I already know that the feature service has to have the timeextent setted up in the service, but how can i make a timeslider that shows this heatmap made?


Thanks in advice! Any example will be really appreciated!