82
社区成员




使用openlayers的时候,出现了如下错误
Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
解决办法:
将ol升级到 7.2.2以上。
由于canvas的更新换代,canvas原设置:
getContext('2d', { willReadFrequently: true });
@CSDN-Ada助手介绍下openlayers