← Back to Release Testing

12 — View Settings Tests

Zoom constraints, extent overrides, initial view modes, home view, rotation, and initial click coordinate.

Test plan: 12-view-settings.md

Map 1 — Restricted Zoom (min: 6, max: 8)

Try zooming beyond level 8 (in) or below level 6 (out) — should be clamped.

Current zoom: 7 Set zoom:
Map 2 — Max Extent Override (world bounds)

Max extent set to [-180, -50, 180, 85]. Zoom out fully — extent is larger than default. Pan should be constrained.

Map 3 — Rotation + Home View (initialView ≠ homeView)

Loads at zoom 7 Ottawa with 45° rotation. Home button navigates to zoom 4 Canada — different from initial.

Map 4 — Initial View by Extent

Map loads fitted to the bounding box [-100, 40, -60, 60].

Map 5 — Initial Click Coordinate

Map loads with a click marker and the Details panel opens with query results at the coordinate.

Map 6 — Rotation Disabled (enableRotation: false)

Rotation is disabled via viewSettings. Rotation button should not render even though listed in navBar. Shift+drag should not rotate.