You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using your library on my website for some time with great success, so thanks for it! However I've got a specific issue that only recently popped up on one of my pages. When passed a specific set of points and setting a specific amount of arcSegments the JS on the page freezes in an infinite loop when using Chrome.
The shortest reproduction I've found is the following:
var p = [
[-99.695, 93.03], [-100.76, 93.25], [-98.63, 92.81]
];
let offset = new Offset();
let result = offset.data(p).arcSegments(9).margin(1);
console.log(result);
The console.log will never run because it's frozen. Creating 8 arcSegments will fix the issue and return a result as expected. This is however not something I can easily change, or well, I could but I don't expect the program to freeze in the first place since I'm sure there's more combinations that will trigger this issue.
Either way thanks again for the product and looking forward to hearing back!
The text was updated successfully, but these errors were encountered:
Another workaround for this is to recreate the polygon as a GeoJSON feature using Turf JS before running Offset, downside is having to run it in all cases as not possible to detect when problem will occur?
Hi,
I've been using your library on my website for some time with great success, so thanks for it! However I've got a specific issue that only recently popped up on one of my pages. When passed a specific set of points and setting a specific amount of arcSegments the JS on the page freezes in an infinite loop when using Chrome.
The shortest reproduction I've found is the following:
The console.log will never run because it's frozen. Creating 8 arcSegments will fix the issue and return a result as expected. This is however not something I can easily change, or well, I could but I don't expect the program to freeze in the first place since I'm sure there's more combinations that will trigger this issue.
Either way thanks again for the product and looking forward to hearing back!
The text was updated successfully, but these errors were encountered: