getLatLonInterpolator sometimes never executing the ".then" function
-
Until recently, the following code (called within onRedrawFinished) worked properly. Following the recent update it now fails about 50% of the time in the sense that the updateInterpolator function never gets called. (I have never seen the "catch" happen in my testing)
getLatLonInterpolator().then((interpolator) => { updateInterpolator(interpolator, model, overlay); }).catch((e) => { console.log(e); updateInterpolator(null, model, overlay); });This has a bad effect on the functionality within the SoarCalc plugin. Any help would be very gratefully received.
-
It appears as if
W.broadcast("redrawFinished", ), is no longer triggered by panning or zooming the map.Perhaps try using the leaflet listeneers.
It also affects my plugins.
-
@rittels Thanks for the hint. I did wonder if this was happening and will now take another look as this will also have a bad effect in SoarCalc. For me, this has been masked by the worse problem that getLatLonInterpolator() fails (never resolves) some fraction of the time and I needed to add a timeout and fail gracefully.
Right now I am struggling to work out why the "publish-plugin" action always fails with "Error: Process completed with exit code 22." This has happened before and I cannot for the life of me remember what I did to resolve it.