We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b1fb8c commit df07d75Copy full SHA for df07d75
example/src/App.js
@@ -4,7 +4,7 @@ import styled from 'styled-components';
4
import GoogleMapReact from 'google-map-react'
5
// import 'google-map-react/dist/index.css'
6
7
-import LOS_ANGELES_CENTER from './const/la_center';
+import { LOS_ANGELES } from './const/cities';
8
9
import Marker from './components/Marker';
10
@@ -34,7 +34,7 @@ const App = () => {
34
<Wrapper>
35
<GoogleMapReact
36
defaultZoom={10}
37
- defaultCenter={LOS_ANGELES_CENTER}
+ defaultCenter={LOS_ANGELES}
38
>
39
{places.map((place) => (
40
<Marker
example/src/const/cities.js
@@ -0,0 +1 @@
1
+export const LOS_ANGELES = [34.0522, -118.2437]
example/src/const/la_center.js
0 commit comments