Skip to content

Commit 597fadd

Browse files
committed
fix: Fix return bounds in certain clamping conditions
If clamp bounds is turned on and the map would be clamped if panned but is partially off screen, the bounds returned were the clamped bounds rather than the visible bounds.
1 parent 7e5d31a commit 597fadd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ var map = function (arg) {
14261426
}
14271427

14281428
return m_this.boundsFromZoomAndCenter(m_zoom, m_center, m_rotation, gcs,
1429-
true);
1429+
true, true);
14301430
};
14311431

14321432
/**

0 commit comments

Comments
 (0)