• Aryan Noshirvnai's avatar
    Fix the actual reason the broadcast circle never looked like a circle · b6cd0b29
    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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    b6cd0b29
Name
Last commit
Last update
deploy/scripts Loading commit data...
public Loading commit data...
src Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.oxlintrc.json Loading commit data...
README.md Loading commit data...
components.json Loading commit data...
index.html Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
tsconfig.app.json Loading commit data...
tsconfig.json Loading commit data...
tsconfig.node.json Loading commit data...
vite.config.ts Loading commit data...