Skip to content

fix: Avoid loading tiles out of bounds#63

Merged
jetelain merged 1 commit intomainfrom
fix-out-of-bounds
Jan 11, 2026
Merged

fix: Avoid loading tiles out of bounds#63
jetelain merged 1 commit intomainfrom
fix-out-of-bounds

Conversation

@jetelain
Copy link
Owner

Avoid loading tiles out of bounds to reduce server error rate

@jetelain jetelain requested a review from Copilot January 11, 2026 08:32
@jetelain jetelain added the enhancement New feature or request label Jan 11, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds bounds checking to tile layer loading to prevent loading tiles outside the valid map area, which reduces server errors.

Changes:

  • Added noWrap: true option to prevent horizontal map wrapping
  • Added bounds configuration to restrict tile loading to the map's world boundaries

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jetelain jetelain merged commit e6215a6 into main Jan 11, 2026
7 checks passed
@jetelain jetelain deleted the fix-out-of-bounds branch January 11, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants