首页 > 解决方案 > Total canvas memory use exceeds the maximum limit (224 MB) on ios using ionic 4 and openlayers

问题描述

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. warning: Total canvas memory use exceeds the maximum limit (224 MB)

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 all layers are hidden on map and gives the above warning.

So is there any way to not cache canvas on ios using ionic? or is there any way also in openlayers?

I will appreciate your help.

thank you in advance.

标签: ionic-frameworkionic4openlayersopenlayers-6

解决方案


我找到了一种解决方法,尝试始终将画布内存保持在其最大限制以下,以避免在 VectorTile 图层中出现渲染问题,我在这里创建了一个拉取请求


推荐阅读