Closed himanshurajora closed 9 months ago
It shows the following error as well:
Hi @himanshurajora, providers classes expect also the engineType
parameter - see https://www.here.com/docs/bundle/maps-api-for-javascript-api-reference/page/H.data.heatmap.Provider.html#.Options
If not explicitly set, the default is H.Map.EngineType.WEBGL
but here you're using H.Map.EngineType.HARP
so you need to initialize the heatmap provider as follows:
// Adding heatmap layer
const heatmapProvider = new H.data.heatmap.Provider({
colors: new H.data.heatmap.Colors(
{
'0': 'blue',
'0.5': 'yellow',
'1': 'red'
},
true
),
opacity: 0.6,
// min: 0,
// max: 100,
// dataMax: 100
type: 'value',
engineType: H.Map.EngineType['HARP']
});
When I am selecting Harp as the map's engine the heat map seems to completely go away.
Before using Harp:
Output:
After using Harp
Output:
After using Harp as engine the heatmap completely disappears although I didn't change anything in that regard. Please let me know how I can fix it.