Automattic / Automattic/jetpack

Map block: Update “Show fullscreen button” toggle to “Show controls” and enhance functionality

Open
#40,717 2 comments 0 reactions 0 assignees View on GitHub
[Block] Map [Experiment] AI labels added [Feature Group] Editor Experience Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Description:

The toggle labeled “Show fullscreen button” should be renamed to “Show controls”. The help text can be removed; it's duplicative.

Additionally, it should be updated to hide or show _all_ map controls, not just the fullscreen button.

### Steps to Reproduce:
1. Add a map block to the editor.
2. Locate the “Show fullscreen button” toggle in the block settings.
3. Toggle it on and off, observing that it only affects the fullscreen button.

### Expected:
• The toggle is renamed to “Show controls.”
• Toggling it on/off should show or hide all controls possible on the map.

### Actual:
• The toggle is labeled “Show fullscreen button” and only controls the visibility of the fullscreen button.

Visual:
![Image](https://github.com/user-attachments/assets/30ba5621-48e3-4942-ac96-e16b9ba4adb8)

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating the map block settings and the existing “Show fullscreen button” toggle, then trace how it controls map controls; done means the label is “Show controls,” the help text is removed, and toggling it shows or hides all available map controls.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, wordpress
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.