Which event when HERE map is fully rendered?

冷暖自知 提交于 2021-01-29 07:58:39

问题


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


回答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'); } })

Hope this helps.



来源:https://stackoverflow.com/questions/54078252/which-event-when-here-map-is-fully-rendered

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!