1

How to be notified when all graphics are fully rendered on HERE maps, for instance when huge amount of icons are to be displayed ?

DevBab
  • 859
  • 7
  • 13
  • Can you please be a bit more specific? which API or SDK are you using and what kind of graphics or are you using the standard marker? –  Jan 16 '19 at 09:54
  • good point :( javascript library, with non standard markers, built from svg icons. – DevBab Jan 16 '19 at 10:36

1 Answers1

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