Skip to content

Commit

Permalink
double the allowed displayed pin/overlay area (#5823)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Aug 22, 2024
1 parent 89511f4 commit 1affb89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class QuestPinsManager(
val displayedArea = withContext(Dispatchers.Main) { map.screenAreaToBoundingBox() }
val tilesRect = displayedArea.enclosingTilesRect(TILES_ZOOM)
// area too big -> skip (performance)
if (tilesRect.size > 16) return
if (tilesRect.size > 32) return
val isNewRect = lastDisplayedRect?.contains(tilesRect) != true
if (!isNewRect) return

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class StyleableOverlayManager(
val displayedArea = withContext(Dispatchers.Main) { map.screenAreaToBoundingBox() }
val tilesRect = displayedArea.enclosingTilesRect(TILES_ZOOM)
// area too big -> skip (performance)
if (tilesRect.size > 16) return
if (tilesRect.size > 32) return
val isNewRect = lastDisplayedRect?.contains(tilesRect) != true
if (!isNewRect) return

Expand Down

0 comments on commit 1affb89

Please sign in to comment.