MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / zoomToTier

Function zoomToTier

src/components/WorldMap.tsx:153–156  ·  view source on GitHub ↗
(zoom: number)

Source from the content-addressed store, hash-verified

151}
152
153function zoomToTier(zoom: number): number {
154 if (zoom < ZOOM_TIER_THRESHOLDS[0]) return 0;
155 return 1;
156}
157
158// Offset co-located markers using golden-angle spiral for organic non-overlapping layout.
159// Uses FIXED geographic offsets — zoom-in naturally separates bubbles via map projection.

Callers 1

WorldMapInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected