Reputation: 879
How to be notified when all graphics are fully rendered on HERE maps, for instance when huge amount of icons are to be displayed ?
Upvotes: 1
Views: 1076
Reputation:
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');
}
})
Upvotes: 1