ionic-framework - 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.
解决方案
我找到了一种解决方法,尝试始终将画布内存保持在其最大限制以下,以避免在 VectorTile 图层中出现渲染问题,我在这里创建了一个拉取请求
推荐阅读
- go - Bazel 在处理 protobuf 文件时有一个错误。我怎样才能暂时解决这个问题?
- javascript - 从 json 导入时,vis.js 无法更改边缘颜色
- r - 将许多列乘以和除以每个组的另一列
- android - 通用图像加载器获取图像但输出显示为空白
- ruby-on-rails - 提取变量值在“_”之前的部分
- python - apache Beam(python)中的重定向是什么意思
- python - 可以在不使用占位符的情况下获得 TensorFlow 中 LSTM 的可变批量大小吗?
- c - 在 C 中打印从 (0 到 n) 的阶乘列表
- opencv - 用于手部识别项目的 OpenCV 或 kinect?
- python - 同一包中的cython导入错误