mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Use named exports in example
This commit is contained in:
parent
8b1fb8c397
commit
df07d75bec
@ -4,7 +4,7 @@ import styled from 'styled-components';
|
||||
import GoogleMapReact from 'google-map-react'
|
||||
// import 'google-map-react/dist/index.css'
|
||||
|
||||
import LOS_ANGELES_CENTER from './const/la_center';
|
||||
import { LOS_ANGELES } from './const/cities';
|
||||
|
||||
import Marker from './components/Marker';
|
||||
|
||||
@ -34,7 +34,7 @@ const App = () => {
|
||||
<Wrapper>
|
||||
<GoogleMapReact
|
||||
defaultZoom={10}
|
||||
defaultCenter={LOS_ANGELES_CENTER}
|
||||
defaultCenter={LOS_ANGELES}
|
||||
>
|
||||
{places.map((place) => (
|
||||
<Marker
|
||||
|
||||
1
example/src/const/cities.js
Normal file
1
example/src/const/cities.js
Normal file
@ -0,0 +1 @@
|
||||
export const LOS_ANGELES = [34.0522, -118.2437]
|
||||
@ -1 +0,0 @@
|
||||
export default [34.0522, -118.2437];
|
||||
Loading…
x
Reference in New Issue
Block a user