Example of a XYZ source in EPSG:4326 using Esri 512x512 tiles.
ArcGIS REST tile services with custom tile sizes (here: 512x512 pixels) and projection (here: EPSG:4326) are supported by ol.source.XYZ
. A custom tile url function is used to handle zoom level offsets.