I have a quadkey function to try to reach a non-Bing Source which uses a quadkey but it returns 404s everytime although the request looks correct. I wondered instead if I should try to pass a custom url to an ol.source.BingMaps layer? I've looked at the api and found the getTileUrlFunction/setTileUrlFunction but can't find any examples to demonstrate how to use it. My original question was kindly answered by Alvin Lindstam but I haven't yet had any success.
From the base directory, the path is as follows: /50k/1202/0031/3033/12020031303302.ipic My function therefore returns this:
return baseURL + z + "/" + quadkey(x, y, z) + ".ipic";
I'm sure this may not make much sense so I've created a fiddle to try to demonstrate. These tiles all work perfectly in an old Silverlight app but I just can't get them to load and my client is non-technical to say the least!