Skip to content

feat: per-arc endpoint elevation#114

Open
TomPlanche wants to merge 3 commits into
shuding:mainfrom
TomPlanche:feat/per-arc-endpoint-elevation
Open

feat: per-arc endpoint elevation#114
TomPlanche wants to merge 3 commits into
shuding:mainfrom
TomPlanche:feat/per-arc-endpoint-elevation

Conversation

@TomPlanche

Copy link
Copy Markdown
Contributor

Add optional fromElevation and toElevation properties to the Arc interface, mirroring the existing per-marker elevation pattern (see #113).

When set, the arc endpoint uses GLOBE_R + fromElevation / toElevation instead of the global markerElevation uniform. When omitted, behavior is unchanged.

Usage

arcs: [{
    from: [lat1, lon1],
    to: [lat2, lon2],
    fromElevation: 0, // matches a marker with elevation: 0
    toElevation: 0,
}]

Omitting either property falls back to the global markerElevation.

@vercel

vercel Bot commented Mar 27, 2026

Copy link
Copy Markdown

@TomPlanche is attempting to deploy a commit to the shu Team on Vercel.

A member of the Team first needs to authorize it.

@TomPlanche TomPlanche changed the title Feat: per-arc endpoint elevation feat: per-arc endpoint elevation Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant