Switching from shared web workers (not supported by chrome on android) to "normal" web workers.

This commit is contained in:
vdv committed 2022-11-17 16:10:44 +01:00
1 parent e4621e4651
commit ad3d2125bb
4 files changed
+19 -21

No files matched your search

+3 -1
View File
@@ -23,7 +23,9 @@ export const Gpxes: react.FC<GpxesProperties> = (props: GpxesProperties) => {
console.log(`Gpxes, visibles: ${JSON.stringify(gpxes)}`);
setVisibleGpxes(gpxes);
};
getVisibleGpxes();
if (props.viewPort !== undefined) {
getVisibleGpxes();
}
}, [
props.viewPort?.bottomRight.x,
props.viewPort?.bottomRight.y,