Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L.tileLayer: Support tms {-y} format #4284

Closed
mvl22 opened this issue Feb 28, 2016 · 1 comment
Closed

L.tileLayer: Support tms {-y} format #4284

mvl22 opened this issue Feb 28, 2016 · 1 comment
Labels
Milestone

Comments

@mvl22
Copy link
Contributor

mvl22 commented Feb 28, 2016

When using tms format with a -y value in the tileserver specification, currently Leaflet.js requires this to be specified as {y} but with a flag tms: true as documented at:
http://leafletjs.com/reference.html#tilelayer-tms

Various documentation contains references like this:

http://geo.nls.uk/mapdata2/bartholomew/great_britain/{zoom}/{x}/{-y}.png

e.g. many examples here:
http://wiki.openstreetmap.org/wiki/National_Library_of_Scotland
http://osmlab.github.io/historic-imagery-index/

It would be useful if Leaflet.js could natively support {-y} so these can be cut-and-pasted and then people spend a few hours working out that they need to remove the - and add the tms: true flag.

@mourner
Copy link
Member

mourner commented Mar 1, 2016

That's actually a pretty good idea. Looks more elegant than a tms option.

@mourner mourner added the feature label Mar 1, 2016
@mourner mourner added this to the 1.1 milestone Mar 1, 2016
jieter added a commit to jieter/Leaflet that referenced this issue Mar 21, 2016
IvanSanchez added a commit that referenced this issue Mar 21, 2016
Support {-y} in tile layer urls (Fixes #4284)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants