-
-
Notifications
You must be signed in to change notification settings - Fork 893
fix!: added integer tileDimension & deprecated tileSize
#1940
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
Conversation
Minor documentation improvements
|
We'll leave this to review and merge before a major upgrade. |
|
As a way of making this less breaking, you could deprecate |
I don't see why that wouldn't work, I'd be happy to do that if you think that's better. |
Deprecated `TileLayer.tileSize` & made nullable Reflected new name throughout internals and semi-internals
tileSize to integertileDimension replacing deprecated tileSize
tileDimension replacing deprecated tileSizetileDimension & deprecated tileSize
Implementation significantly changed
|
I've done what @TesteurManiak suggested. |
TesteurManiak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Fixes #1936.
There's no apparent reason that
tileSizewould be anything but an integer, since it is not possible to get tiles in fractional pixels. The WMS layer already assumed this. This PR relies on this assumption, and a different fix would be needed for #1936 if this assumption is not valid.This is breaking, particularly for those using more internal functionality. However, for most users, it should not be breaking. Those which are using
tileSizeexplicitly currently will have a deprecation message, but functionality will not change. Additionally, the 'temporary' fix for #1936 (just converting the number to an integer before a string) is also implemented if not using the newtileDimension.