Openlayers uses canvas function to return canvas images, hoping to achieve real-time rendering while dragging the mouse
`var imageCanvasSource = new ImageCanvasSource({
canvasFunction: function () {
...//Return canvas object
}
})
var imageLayer = new ImageLayer({
source: imageCanvasSource,
});
map.addLayer(imageLayer);`
The current effect is to drag the map and release the mouse button to render the image.
The desired effect is to render the image simultaneously while dragging the mouse without releasing the mouse button. Just like tiles。
Previously, there were two similar parameters:
updateWhileAnimating: true, updateWhileInteracting: true
But it doesn’t work on ImageLayer
user25711855 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.