How to be notified when all graphics are fully rendered on HERE maps, for instance when huge amount of icons are to be displayed ?
Asked
Active
Viewed 766 times
1 Answers
1
It is fairly straightforward to check when the map is rendered - there is a "render" event (https://developer.here.com/documentation/maps/topics_api/h-map-render-renderengine.html#h-map-render-renderengine__render-event) on the RenderEngine. When target of the even is RenderEngine itself it means that the map was rendered. For example:
map.getEngine().addEventListener('render', (evt) => {
if (map.getEngine() === evt.target) {
console.log('rendered');
}
})

Nimantha
- 6,405
- 6
- 28
- 69
-
confused answer, render event as named should trigger each time we have re-render the map, but what's about the first time rendering. – Tamsamani Jan 13 '22 at 11:35
-
the documentation for which events are available is quite horrible and all over the place! – psclkhoury Feb 28 '22 at 13:43