After changing one of the data sources for a Mapbox component, I get these styleimagemissing console warnings alerting that some icons for points of interest are not available. For my purposes it's OK that those icons aren't shown, so I'm wondering if there's a way to avoid getting these warnings from the frontend code, without changing the data sources. Perhaps ignoring points of interest or images/icons?
I've already tried writing some function that's triggered when an image is missing instead of the warning:
map.on('styleimagemissing', () => {
// do something
});
But this seems to happen after the warning has already been triggered.