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
TMS doesn't work with L.CRS.Simple in 1.0 #4338
Comments
The problem is that TMS, on the other hand, needs an upper bound for the CRS's Y coordinate, to be able to flip the tile row. This means that TMS will not work with If you want to use TMS and a CRS that resembles |
Regarding #4337, should we not try to replace |
@jieter yes, sounds like a good plan. In general it would of course be very nice to provide a better error message than that some internal variable is |
Yes at the moment if i reference the master version with the {-y} fix i can't use crs: L.CRS.Simple, |
Hang on, working on it... |
@perliedman Leaflet doesn't seem to do much explaining in error messages. I've added an example of the error produced by a small |
As provided by a user in #4333 using L.CRS.Simple with tms: true results in an exception where
this._globalTileRange
is uninitialised in tileLayer / getTileUrl.Leaflet/src/layer/tile/TileLayer.js
Line 77 in b60e18d
http://playground-leaflet.rhcloud.com/jac/1/edit?html,output
It works untouched in 0.7, but is broken in 1.0
Related issue: #2298
cc: @perliedman
The text was updated successfully, but these errors were encountered: