I tried to adopt this approach based on ol.source.ImageStatic
for OpenLayers 3 https://stackoverflow.com/a/36183738/2797243
to OpenLayers 4, with no result:
https://codepen.io/itsonit/pen/jYKMMz?editors=0010
The current ol.source.ImageStatic
example for OL4 you can find here: https://openlayers.org/en/latest/examples/static-image.html
How is it possible to load a SVG source to a OpenLayers 4 map?
The functionality seems to depend on the SVG data.. A working example: