krishnadhulipalla commited on
Commit
8ab7aa7
·
1 Parent(s): 1f74bee

Update MapCanvas.tsx

Browse files
web/src/components/map/MapCanvas.tsx CHANGED
@@ -98,9 +98,6 @@ export default function MapCanvas({
98
  return <div>No Google Maps API key. Check /config/runtime and env.</div>;
99
  }
100
 
101
- // TEMP: isolate auth failures by removing mapId during testing
102
- const testingMapId: string | undefined = undefined; // <- set to 'effectiveMapId' once key works
103
-
104
  return (
105
  <APIProvider
106
  apiKey={effectiveKey || GMAPS_KEY}
@@ -108,7 +105,7 @@ export default function MapCanvas({
108
  >
109
  <Map
110
  className="map"
111
- mapId={testingMapId || MAP_ID || undefined}
112
  defaultCenter={{ lat: 39, lng: -98 }}
113
  defaultZoom={4}
114
  gestureHandling="greedy"
 
98
  return <div>No Google Maps API key. Check /config/runtime and env.</div>;
99
  }
100
 
 
 
 
101
  return (
102
  <APIProvider
103
  apiKey={effectiveKey || GMAPS_KEY}
 
105
  >
106
  <Map
107
  className="map"
108
+ mapId={effectiveMapId || MAP_ID || undefined}
109
  defaultCenter={{ lat: 39, lng: -98 }}
110
  defaultZoom={4}
111
  gestureHandling="greedy"