P2 local stored background map access

Can anyone provide some help on how to define the link structure to add a background map that is stored on a local PC drive.
e.g. file://D:/tiles/$z/$x/$y.jpg does not work for a TMS exported map.
Thank you in advance, Rolf

I think it won’t work because of cross-origin policy. If it were, any site could browse your computer when you were browsing the Web, just like in the old IE days :laughing:
An http server on the localhost wouldn’t work either, I think.

An http server should probably work, I think, but you might need to access it via IP address and/or put a crossdomain.xml file there.