Where there is a callback function where map visualization have completed to load the initial data?

Hi there,
I'm running kibana 6.3.2.

I want to emit fitToData() on map visualization every time the data is loaded.
Can some one point me where there is a callback function where map visualization have completed to load the initial data.
I guess it is somewhere in kibana_map.js

thank you all in Advance.
Cheers, Amit :slight_smile:

Hi, if you are working with the source in development, you'll most likely want to be in a feature branch based off the master branch, which is an unreleased alpha version. A 6.3 branch is also in the Git repo, but that branch might not have new services in the code that you'd want to use for your feature.

There are custom events fired when visualization rendering has started and when it is complete. You could add an event listener to the elements containing maps that listen for render completion and then fire some code in the event handler.

Look for how the renderStart and renderComplete custom events can be used, which are set up in src/ui/public/render_complete.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.