Closed ElviraKukhtaruk closed 6 months ago
@ElviraKukhtaruk the content of labelDotRadius
will run asynchronously at the first available frame. So you just have to set your "after" code to be asynchronous too, using a setTimeout
, for example.
In your example:
globe.labelDotRadius(d => {
console.log('Before');
return ...;
});
setTimeout(() => console.log('After'));
Thanks, that helps a lot.
When i use globe.labelDotRadius function to change label dot radius:
I get the following output (Browser console):
I have some labelsData. I want to edit label dot radius (with globe.labelDotRadius), after that i need to preform some function after globe.labelDotRadius function is executed for all elements. Is it possible to achieve this behavior?
Thank you in advance.