question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropping irregularly shaped edge tiles

See original GitHub issue

Hi all- there’s an edge case that causes unexpected behavior in builds from the master branch after TileSource :getTileAtPoint was changed on July 29. Reverting those changes to getTileAtPoint are enough to eliminate the unexpected behaviors. Those changes were originally made in pull request 987 in response to issue 555.

If the tileSource height and width are not integer multiples of the tileSource tileSize, each right or bottom edge Tile loads with height and/or width less than tileSize. This is the correct expected behavior. After the July 29 fix, however, zooming the viewport inward toward any right or bottom edge Tile causes the tileSize-sized upper-left tiles to disappear completely.

For my custom tileSource of tileSize: 512, the error happens both for height and width 520 or 1250, but but not for 512 or 1024. The error only happens if the tileSize is not a factor of the height or width.

Here is my custom tileSource:getTileUrl

  function create_ts(z) {
      return {
            height: g_height,
            width:  g_width,
            tileSize: 512,
            minLevel: 0,
            maxLevel: Math.ceil(Math.log2(g_width/512)),

            getTileUrl: function( level, x, y ){

                return "http://" + server_name + "/data/?datapath=" + data_path +
                       "&start=" + x*512 + "," + y*512 + "," + z + "&mip=" + (this.maxLevel - level) +
                       "&size=" + 512 + "," + 512 + ",1";
            }
      }
  }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
avandecremecommented, Oct 20, 2016

I made yet another change to getTileAtPoint in #1006: https://github.com/openseadragon/openseadragon/pull/1006/files#diff-ed844244d3e5dcb6dfd56445d430efdaL347 Would you mind testing this implementation?

0reactions
iangilmancommented, Oct 27, 2016

@thejohnhoffer Can you verify?

I’ll close this issue assuming it’s good, but if you find a regression we can open it again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help: How do I cut irregular shaped tiles? : r/DIY - Reddit
In this case, lay full sheets of tile as close as you can to the edge, then tear tiles off the next sheet...
Read more >
Tile Edge Trim - How to Choose It and Install It (2022 Update)
A possible solution would be to buy a flush type of trim (like Schluter Jolly), carve out the grout and mortar from behind...
Read more >
Tile Edge Trim - Amazon.com
ATCOOGUS Peel and Stick Trim for Backsplash Tile Edge, Self-Adhesive Liner for Corner Decor Flexible Tile Molding, Kitchen Backsplash Tiles Trims(10 Feet, Gold)....
Read more >
Irregular Tiles - Etsy
Check out our irregular tiles selection for the very best in unique or ... 100 Pcs Glazed Ceramic Jigsaw Puzzle Irregular Shaped Mosaic ......
Read more >
Tile Installation Problems: How to Avoid the Worst Mistakes
This could be something simple like irregular shapes, subfloors, existing surfaces, or material issues. It is very common to see the same ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found