Examples for google-map-react library ·
This project was bootstrapped with Create React App.
- React rendering
- React-router for routing
- Styled components for styling our components
- Main (source)
- Heatmap (source)
- Searchbox (source)
- Autocomplete (source)
- Marker and Info Window using React Component (source)
- Marker and Info Window using Google Maps API Object (source)
Although I prefer yarn, you can use either yarn or npm:
npm install
or simplyyarn
npm start
oryarn start
Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.
The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.
npm run build
oryarn build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
By default, it also includes a service worker so that your app loads from local cache on future visits.
Your app is ready to be deployed.
npm run deploy
oryarn deploy
This will push a branch named gh-pages
to the repository, which will be used by GH to render the latest version of our site.