Total canvas memory use exceeds the maximum limit (224 MB) on ios

Hello, we are building an ionic app to show layers on maps using openlayers. Everything is working well on android but on ios when we load the second project we will have the following warning and error.
warning: Total canvas memory use exceeds the maximum limit (224 MB)
error: Unable to get image data from canvas because the canvas has been tainted by cross-origin data.

I googled it, I think that the problem on ios is caching canvas of the map and when exceed the 224MB the app don’t crash but don’t show any layer on map and gives the above warning and error.

So is there anyway to not cache canvas on ios?

I will appreciate your help.

thank you in advance.

1 Like