I am building a web application with OpenLayersthat should have offline map support. I save pictures from a WMS server to the browser cache and load them from the cache as a dataURL. The next step is to input the dataURL to an tileWMS source in OpenLayers. When examining the documentation there seems to be an option called tileLoadFunction that should allow a dataURL to be passed in and added as the source. However I'm not able to understand how to use this option.
Does anyone know how to use the tileLoadFunction or know of some other way to input a dataURL as a source in OpenLayers?