Skip to content

Commit 7d086e1

Browse files
committed
fix a bug where vectorModule used rejection limits instead of data clamp limit for zoom level calculations
1 parent 4673525 commit 7d086e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Mapbox/VectorModule/VectorLayerModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ private void UpdateRetainedTiles(HashSet<CanonicalTileId> retainedTiles)
230230

231231
private CanonicalTileId GetTargetTileId(CanonicalTileId tileId)
232232
{
233-
var maxZoom = (int)_vectorModuleSettings.RejectTilesOutsideZoom.y;
233+
var maxZoom = _vectorModuleSettings.DataSettings.ClampDataLevelToMax;
234234
if (tileId.Z >= maxZoom)
235235
{
236236
return tileId.Z > maxZoom

0 commit comments

Comments
 (0)