As we use multiple servers to connect the spatial data from, some of them have authentication built into them, thus triggering a authentication prompt when attempting to load it.
I want to prevent this prompt from triggering, instead I want to have it trigger a function called recordFailureRequest().
this is how far i got:
try {
const data = await mapServerLayer.loadAll();
//process data
} catch (error) {
recordFailureRequest(error);
return null;
}
Solved! Go to Solution.
That seems to have done the trick so far.