-
Aryan Noshirvnai authored
The previous pass only strengthened the circle's styling (stronger fill, dashed border) - that wasn't the real bug. The radius is computed as a fraction of the map's current visible viewport. Search and "use my location" already jump+zoom the map on pin placement, but a plain click never did, so clicking to place a pin left the map at its whole-world starting zoom - where a small picker map's viewport spans roughly a third of the planet's longitude. At that zoom the "radius" came out to literally thousands of kilometers. A circle that large has no edge anywhere inside a small map: every visible pixel is inside it, so it reads as a flat color wash, not a circle - "the circle isn't there" was a completely accurate description. ClickToPlacePin now zooms in to the same level search/locate already use, but only on a station's very first placement (checked via whether a pin already exists, not the current zoom, so a user who deliberately zooms back out later never gets yanked back in). The computed radius is also clamped to a 200m-100km sane range as a defensive backstop against the same degenerate math at any other extreme zoom level. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
b6cd0b29