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

Do not calculate inverted y coords for CRSes with infinite: true #4344

Merged
merged 1 commit into from
Mar 23, 2016

Conversation

jieter
Copy link
Contributor

@jieter jieter commented Mar 22, 2016

Do not calculate inverted y coords for CRSes with infinite: true

fix for #4338

With this change, this example:

var map = L.map('map', {
    crs: L.CRS.Simple
}).setView([0, 0], 5);
L.tileLayer('http://example.com/{z}/{-y}/{x}.png').addTo(map);

will give the error message
No value provided for variable {-y}

@mourner mourner changed the title Do calculate inverted y coords for CRSes with infinite: true Do calculate inverted y coords for CRSes with infinite: true Mar 22, 2016
@jieter jieter changed the title Do calculate inverted y coords for CRSes with infinite: true Do not calculate inverted y coords for CRSes with infinite: true Mar 22, 2016
@jieter jieter force-pushed the infinite-crs-gettileurl branch 2 times, most recently from b33fa72 to 9f85476 Compare March 22, 2016 12:35
@jieter jieter force-pushed the infinite-crs-gettileurl branch from 9f85476 to ccaf632 Compare March 22, 2016 13:10
@IvanSanchez IvanSanchez merged commit 24a2a11 into Leaflet:master Mar 23, 2016
@jieter jieter deleted the infinite-crs-gettileurl branch March 23, 2016 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants