From afab5127b3cfed35c436de5f4ec093195d6e13f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Sat, 24 Jan 2026 16:29:33 +0000 Subject: [PATCH] Restore Google Maps iframe preview - Restore original Google Maps embed iframe approach - URL: maps.google.com/maps?q=...&output=embed&z=15 - Add "Open in Maps" overlay button on the map - Height 300px for better visibility Co-Authored-By: Claude Opus 4.5 --- web/components/ScraperTest.tsx | 73 ++++++++++++++++------------------ 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/web/components/ScraperTest.tsx b/web/components/ScraperTest.tsx index e422063..0b40ed6 100644 --- a/web/components/ScraperTest.tsx +++ b/web/components/ScraperTest.tsx @@ -423,6 +423,11 @@ export default function ScraperTest({ onJobsChange, onSelectReviews }: ScraperTe } }; + // Google Maps embed URL for iframe preview + const embedUrl = searchedQuery + ? `https://maps.google.com/maps?q=${encodeURIComponent(searchedQuery)}&output=embed&z=15` + : ''; + // Google Maps link for opening in new tab const googleMapsUrl = searchedQuery ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(searchedQuery)}` @@ -528,51 +533,43 @@ export default function ScraperTest({ onJobsChange, onSelectReviews }: ScraperTe {/* Map Preview Area */} -
+
{searchedQuery ? ( -
-
- {/* Map Pin Icon with animation */} -
-
- - - - -
- {/* Pulse animation */} -
-
- - {/* Search Query Display */} -

📍 {searchedQuery}

-

Click Validate to check this business on Google Maps

- - {/* Open in Google Maps button */} - - - - - Open in Google Maps - - - - -
-
+ <> +