Automattic / Automattic/jetpack

Maps Block: Add Geolocation button to find current location

Open
#11,878 2 comments 0 reactions 0 assignees View on GitHub
[Block] Map [Focus] Blocks Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Is your feature request related to a problem? Please describe.
The search and location selection isn't perfect, and finding your "current" location isn't super easy.

#### Describe the solution you'd like
I think having a "You are Here" button that uses the [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) would be beneficial and easy to implement.

I'm happy to look into this some and try my hand at a PR if you think this would be useful.

Contributor guide

Open the contributing guide

Research direction

Locate the Maps Block entry point and read the MDN Geolocation API documentation linked in the issue. Confirm how the block currently handles search and location selection, then define completion as a visible current-location button that uses the browser location and updates the map appropriately.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.