I am creating an web app with ReactJS & there I have to use Google Map to show some data from NASA API
no billing free API Key on Google Developer.env on my React project & use with `process.env.REACT_APP_API_KEYgoogle-map-reactJavaScript Map API*localhost:3000
http://localhost:3000
cached & cookies & restart server many times but it show meThis page can't load Google Maps correctly. Do you own this website? For development purposes only
import GoogleMapReact from 'google-map-react'
import '../style/index.css'
const Map = ({ center, zoom }) => {
return (
<div className='map'>
<GoogleMapReact
bootstrapURLKeys={{
key: process.env.REACT_APP_API_KEY
}}
defaultCenter={center}
defaultZoom={zoom}
>
</GoogleMapReact>
</div>
)
}
Map.defaultProps = {
center: {
lat: 42.3265,
lng: -122.8756
},
zoom: 3
}
export default Map