SpatialZoom
Zooming the spatial map into the geography. The table keeps its size; the circle it shows gets smaller around a center, and the terrain is rebuilt for it. Zoom 1 is the whole mesh.
Types
While a zoom is waiting for its terrain, the built terrain is shown scaled and shifted toward what the new circle will show. offset is the new center's position on the current disk and scale how much bigger the new circle draws the ground, both in model units. The scale is held between 0.2 and the size where the terrain's edge reaches maxRadius, and the shift is cut so no part of the terrain goes past maxRadius (under the bezel).
Properties
Functions
The circle shown at a zoom around a center (the full circle's center when null). The center is pulled in so the zoomed circle stays inside the full one, so zooming out ends on the whole mesh and the map never shows ground beyond it.
A point pulled in flat to the disk's rim when it lies past it, keeping its height.
The zoom and center that fit the coordinates on the disk with padding of their reach to spare. One place (or several on top of each other) gets FOCUS_ZOOM, as centering on a node does. Coordinates too spread out for any zoom get the whole mesh, zoom 1. Null when empty.
Whether a node is drawn: only inside the circle shown, so nothing stands past the rim.
The most the map can zoom in on a full circle: down to a 1 km radius, and never below 1.