Restricts zoom of the map for zooming in too far and out too far.
Why
The map turns completely grey when it is zoomed in too far, this ensures it is impossible to zoom in that far. The map zooms in too far when a user searches for an address.
Since the coverage is restricted to Seattle, the zoom should be restricted so the user cannot zoom out past the Seattle area.
How
Increases the minimum zoom and decreases the maximum zoom on MeasurementMap.tsx.
What
Restricts zoom of the map for zooming in too far and out too far.
Why
The map turns completely grey when it is zoomed in too far, this ensures it is impossible to zoom in that far. The map zooms in too far when a user searches for an address. Since the coverage is restricted to Seattle, the zoom should be restricted so the user cannot zoom out past the Seattle area.
How
Increases the minimum zoom and decreases the maximum zoom on MeasurementMap.tsx.
Screenshots
When a user searches now:
A search with the changed code: