The web should create leaflet tiles based on a exported svg from diag_exportTerrainSVG or any other map image.
This would make it easier to create tiles for new maps which aren't supported yet.
Example i found https://github.com/andrewdodd/leaflet-go-map-tiling