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

Allow overriding the tilesAtZoom function. #568

Merged
merged 1 commit into from
Apr 28, 2016

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Apr 27, 2016

Prior to this, it was assumed that there was 2^level tiles in each direction at each level. For non-square tile source (such as slide images), this is not the case. Unless (until?) the tilesLayer knows how many pixels of tiles are available for the maximum level, the tilesAtZoom function needs to change. This allows it to be specified as an option.

This is related to issue #544, but does not complete that.

Prior to this, it was assumed that there was 2^level tiles in each direction at each level.  For non-square tile source (such as slide images), this is not the case.  Unless (until?) the tilesLayer knows how many pixels of tiles are available for the maximum level, the `tilesAtZoom` function needs to change.  This allows it to be specified as an option.

This is related to issue #544, but does not complete that.
@codecov-io
Copy link

codecov-io commented Apr 27, 2016

Current coverage is 70.66%

Merging #568 into master will increase coverage by +<.01%

@@           master       #568   diff @@
========================================
  Files          81         81          
  Lines        7039       7041     +2   
  Methods         0          0          
  Branches        0          0          
========================================
+ Hits         4971       4975     +4   
+ Misses       2068       2066     -2   
  Partials        0          0          
  1. File src/mapInteractor.js (not in diff) was modified. more
    • Misses -2
    • Partials 0
    • Hits +2

Sunburst

Powered by Codecov. Last updated by fb254a4

@jbeezley
Copy link
Contributor

LGTM

@manthey manthey merged commit a28fa86 into master Apr 28, 2016
@manthey manthey deleted the allow-override-of-tiles-at-zoom branch April 28, 2016 15:59
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