[OpenLayers-Users] Re: Pad XYZ Layer url

Tobias Reinicke ramotswa at gmail.com
Thu Feb 23 10:13:56 EST 2012


Yup, never mind. ArcGISCache.js is the answer...

Must use my eyes more.


On 23 February 2012 15:11, Tobias Reinicke <ramotswa at gmail.com> wrote:
> Hello All,
>
> I am using a tilecache from an external provider, and their cache is
> in the form of:
> cache/layer1/L04/R00000002/C00000006.jpg
>
> So I've tried the XYZ layer and can get all the correct numbers,
> except I don't know how to pad the numbers with the correct amount of
> 0's beforehand.
> I.e. in code it's: /L${x}/R${y}/C${z}.jpg
> which comes out as "/L1/R0/C2.jpg"
>
> Any ideas how I can pad this?
>
> Thanks
>
> Toby


More information about the Users mailing list