Skip to content

Commit ae1c074

Browse files
committed
updated solution api key, removed restrict
1 parent ff237c1 commit ae1c074

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

solution/src/app.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ import type {Marker} from '@googlemaps/markerclusterer';
3131

3232
import {Circle} from './components/circle'
3333

34-
const API_KEY =
35-
globalThis.GOOGLE_MAPS_API_KEY ?? (process.env.GOOGLE_MAPS_API_KEY as string);
36-
3734
type Poi ={ key: string, location: google.maps.LatLngLiteral }
3835
const locations: Poi[] = [
3936
{key: 'operaHouse', location: { lat: -33.8567844, lng: 151.213108 }},
@@ -54,7 +51,7 @@ const locations: Poi[] = [
5451
];
5552

5653
const App = () => (
57-
<APIProvider apiKey={API_KEY} onLoad={() => console.log('Maps API has loaded.')}>
54+
<APIProvider apiKey={'Your API key here'} onLoad={() => console.log('Maps API has loaded.')}>
5855
<Map
5956
defaultZoom={13}
6057
defaultCenter={{ lat: -33.860664, lng: 151.208138 }}
@@ -139,8 +136,6 @@ export default App;
139136

140137
const root = createRoot(document.getElementById('app'));
141138
root.render(
142-
<React.StrictMode>
143139
<App />
144-
</React.StrictMode>
145140
);
146141

0 commit comments

Comments
 (0)