Good Day
I have a large network that I want to view as a heatmap. I have the following heatmap render settings:
const heatmapParams = {
layer: layer,
view: view,
field: field,
colorStops: this.colourStops,
};
heatmapRendererCreator.createRenderer(heatmapParams).then((response) => {
this.heatmapRenderSetting = response.renderer.clone();
r(this.heatmapRenderSetting)
}).catch((error) => {
console.log('Error');
console.log(error);
j(error);
})
If I'm zoomed out and view the data, the heatmap looks great, the problem, if I load the map being zoomed in with no data in the view, the heatmap is completely washed out. Is there a way to generate the heat map using the data in the map view, what's in the current view extent? Or, can I set the zoom dynamically before loading the Heatmap, so the data is in the view?
Thanks