Skip to content

Add rotation and contextMenu UI control options - #138

Merged
corbinmuraro merged 1 commit into
mainfrom
corbin/embed-rotation-context-menu-controls
Aug 25, 2026
Merged

Add rotation and contextMenu UI control options#138
corbinmuraro merged 1 commit into
mainfrom
corbin/embed-rotation-context-menu-controls

Conversation

@corbinmuraro

@corbinmuraro corbinmuraro commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Exposes the embed controls introduced in felt/felt#21372 through the SDK: rotation and contextMenu join UiControlsOptions, so they can be set at embed time via Felt.embed (mapped to the rotation/contextMenu URL params) and toggled at runtime via updateUiControls.

No app-side handler change is needed — updateUiControls already assigns params onto controlsVisibilityState, which reacts to both keys — but the app's pinned @feltmaps/js-sdk will need bumping to a version containing this once released, so the handler's schema stops stripping the new keys.

The Felt app recently gained embed URL params to disable map rotation and
the right-click menu (felt/felt#21372). Expose them through the SDK: both
options ride the existing UiControlsOptions schema, so they work in
Felt.embed (as URL params) and updateUiControls (handled by the app's
existing assign-through handler).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@corbinmuraro
corbinmuraro force-pushed the corbin/embed-rotation-context-menu-controls branch from 8bf6b23 to 7a47c16 Compare August 20, 2026 22:22

@sclebal sclebal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good!

@corbinmuraro
corbinmuraro merged commit b0eff03 into main Aug 25, 2026
4 checks passed
@corbinmuraro
corbinmuraro deleted the corbin/embed-rotation-context-menu-controls branch August 25, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants