We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc21a1 commit 47bf955Copy full SHA for 47bf955
src/plots/mapbox/mapbox.js
@@ -367,7 +367,10 @@ proto.resolveOnRender = function(resolve) {
367
if(map.loaded()) {
368
map.off('render', onRender);
369
// resolve at end of render loop
370
- setTimeout(resolve, 0);
+ //
371
+ // Need a 10ms delay (0ms should suffice to skip a thread in the
372
+ // render loop) to workaround mapbox-gl bug introduced in v1.3.0
373
+ setTimeout(resolve, 10);
374
}
375
});
376
};
0 commit comments