Map: Custom map source

Hi!
There are lots of TMS / XYZ map sources out there. Would it be possible to use a custom map source for the Map plugin?

+1 on this. Would be great to have the ability to use totally local/self hosted options like https://openfreemap.org/