Skip to content

Add interactive map to Locations page#3

Merged
TomGreener91 merged 7 commits into
mainfrom
add-interactive-map-1652406578742217909
May 24, 2026
Merged

Add interactive map to Locations page#3
TomGreener91 merged 7 commits into
mainfrom
add-interactive-map-1652406578742217909

Conversation

@TomGreener91

Copy link
Copy Markdown
Owner

Replaced the static map on the Locations page with an interactive map using Leaflet and React-Leaflet. Configured 10 store locations in London within src/data/locations.ts and mapped them to both the map markers and the location list. Fixed Leaflet's default marker icon resolving issue for bundlers.


PR created automatically by Jules for task 1652406578742217909 started by @Reddevildragg

- Installed `leaflet` and `react-leaflet` to provide an interactive map.
- Created `src/data/locations.ts` with 10 London store locations.
- Replaced the static map image in `Locations.tsx` with a `MapContainer`.
- Rendered markers on the map using the configured store locations.
- Fixed the default Leaflet marker icon issue in React.
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions

github-actions Bot commented May 24, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 8d98a09):

https://rexvelocity--pr3-add-interactive-map-c8k02hlh.web.app

(expires Sun, 31 May 2026 22:59:12 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e6a8092b99a21a146aa2c15690bc80339a98e50d

This restores the distances on the location cards as per user feedback to have it as it was before.
The distances are now configured in the static `src/data/locations.ts` file rather than hard-coded into the component.
- Added interactive Leaflet map with dark theme and custom markers
- Configured 10 locations in London via JSON data
- Simplified sidebar cards to only display name and address
- Fixed Leaflet marker icon issues and imported CSS
@TomGreener91 TomGreener91 merged commit cb0ba9f into main May 24, 2026
2 checks passed
@TomGreener91 TomGreener91 deleted the add-interactive-map-1652406578742217909 branch May 25, 2026 09:11
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