const currentsLayer = new ImageryTileLayer({
url: "https://tiledimageservices.arcgis.com/jIL9msH9OI208GCb/arcgis/rest/services/Spilhaus_UV_ocean_currents/ImageServer",
renderer: {
type: "flow", // autocasts to new FlowRenderer
density: 1,
maxPathLength: 10,
trailWidth: "2px"
},
blendMode: "destination-in"
});